You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get random failures on windows only (not on mac and not on linux) with win7 and Python 2.7.8 and py.test 2.6.1.
This heisenbug occurs some times after editing a file and running py.test.
Somehow, I found that the previous version of the code was executed, not the one saved.
Clearing the pycache solved the issue each time.
I reckon that I could disable bytecode creation (as per #200 )
However why should I need to worry about a special python flag or env var just for py.test?
Note: the issue could be due to poor filesystem timestamps resolution on windows when files are updated.
Could it make sense to have a flag disable caching? or only enable caching with a command flag?
Originally reported by: BitBucket: pombredanne, GitHub: pombredanne
I get random failures on windows only (not on mac and not on linux) with win7 and Python 2.7.8 and py.test 2.6.1.
This heisenbug occurs some times after editing a file and running py.test.
Somehow, I found that the previous version of the code was executed, not the one saved.
Clearing the pycache solved the issue each time.
I reckon that I could disable bytecode creation (as per #200 )
However why should I need to worry about a special python flag or env var just for py.test?
Note: the issue could be due to poor filesystem timestamps resolution on windows when files are updated.
Could it make sense to have a flag disable caching? or only enable caching with a command flag?
The text was updated successfully, but these errors were encountered: