Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
TST: use pytest name in naming files for check_figures_equal#16693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
If you stacked `pytest.mark.parametrize` with check_figures_equalevery set of parameters would write to the same file. This makespost-hoc debugging hard and causes intermittent CI failures.
They are preceded by a `*args` in the signature of wrapper.
765e08e to3b57fbaCompare
anntzer left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
postci
Uh oh!
There was an error while loading.Please reload this page.
QuLogic commentedMar 14, 2020
This seems to fail a lot; can we get it in 3.2.1 too? |
tacaswell commentedMar 15, 2020
Is there an existing "make this a safe name" function someplace in the standard library or do we have to roll our own here? |
This is probably to stringent but this is better than blindly usingthe test name from pytest.
timhoffm commentedMar 15, 2020
I'm not aware of anything like that. If anything I'd expect that in pathlib, but it is OS-depended, so would need to be handled in |
tacaswell commentedMar 15, 2020
The failure was This makes me think that we should be doing something similar in compare_images... |
tacaswell commentedMar 15, 2020
abc9445 adds the comment from@QuLogic which is definitely true! I think the tools we can use to do this are better now (3 years later). Might be worth re-visiting that decorator to see if we can make in simpler (and stop using the in-direct fixtur paramterization that pytest tried to deprecate). |
QuLogic commentedMar 16, 2020
QuLogic commentedMar 16, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
With#15199 backported, I think we should be able to backport this as well without conflicts. |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free tosuggest an improvement. |
…_namesTST: use pytest name in naming files for check_figures_equal
…_namesTST: use pytest name in naming files for check_figures_equal
QuLogic commentedMar 16, 2020
So we needed#15589 to avoid conflicts; it seems pretty non-controversial, so I included it in the backport above. |
QuLogic commentedMar 17, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This seems to have crossed with#16707, which has a test that takes so I guess there's a reason I wrote that indirection comment... |
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
If you stacked
pytest.mark.parametrizewith check_figures_equalevery pass through would write to the same files. This uses the request fixture to extract the name.
PR Checklist