Repository navigation
Make test_attrgetter_using test dependant. - #11293
Conversation
One cannot run the mentioned test individually and thus it brings troubles with pytest -n auto.
|
Since your seem to fix those kind of tests, maybe you can gather them under the issue I created (which also includes a dependent test) #11285 or make a separate "summary" issue ? (so that we know which are the ones to fix / that were already fixed) |
|
Sure, good point. Do you have any other tests that have a global context dependency? |
|
Well, just running |
|
I see, I can confirm that as well with |
Well, I wonder actually about the way to patch this thing. Either we patch it by "cleanly" resetting things up, or we modify the flow of @AA-Turner (for the ping) Can you tell us which direction would be the best ? |
I'm not entirely what the two options are here, but I think philisophically we should try and eliminate implicit state between tests. I think every test should be independent, but if it makes the tests take much longer, perhaps we make any state that is needed explicit via module-level setup or fixtures etc? A |
One cannot run the mentioned test individually and thus it brings troubles with pytest -n auto.
@AA-Turner