{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/576","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/576/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/576/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/576/events","html_url":"https://github.com/pytest-dev/pytest/issues/576","id":88535646,"number":576,"title":"Random test failures on windows after editing a python file","user":{"login":"pytestbot","id":12873537,"avatar_url":"https://avatars.githubusercontent.com/u/12873537?v=3","gravatar_id":"","url":"https://api.github.com/users/pytestbot","html_url":"https://github.com/pytestbot","followers_url":"https://api.github.com/users/pytestbot/followers","following_url":"https://api.github.com/users/pytestbot/following{/other_user}","gists_url":"https://api.github.com/users/pytestbot/gists{/gist_id}","starred_url":"https://api.github.com/users/pytestbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pytestbot/subscriptions","organizations_url":"https://api.github.com/users/pytestbot/orgs","repos_url":"https://api.github.com/users/pytestbot/repos","events_url":"https://api.github.com/users/pytestbot/events{/privacy}","received_events_url":"https://api.github.com/users/pytestbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/pytest-dev/pytest/labels/windows","name":"windows","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-09-01T22:47:13Z","updated_at":"2016-01-01T14:59:54Z","closed_at":"2016-01-01T14:59:54Z","body":"Originally reported by: **BitBucket: [pombredanne](http://bitbucket.org/pombredanne), GitHub: [pombredanne](http://github.com/pombredanne)**\n\n----------------------------------------\n\nI 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.\n\nThis heisenbug occurs some times after editing a file and running py.test.\nSomehow, I found that the previous version of the code was executed, not the one saved.\nClearing the __pycache__ solved the issue each time.\n\nI reckon that I could disable bytecode creation (as per #200 ) \nHowever why should I need to worry about a special python flag or env var just for py.test?\n\nNote: the issue could be due to poor filesystem timestamps resolution on windows when files are updated.\n\nCould it make sense to have a flag disable caching? or only enable caching with a command flag?\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/pytest-dev/pytest/issue/576\n"},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments/168312202","html_url":"https://github.com/pytest-dev/pytest/issues/576#issuecomment-168312202","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/576","id":168312202,"user":{"login":"RonnyPfannschmidt","id":156838,"avatar_url":"https://avatars.githubusercontent.com/u/156838?v=3","gravatar_id":"","url":"https://api.github.com/users/RonnyPfannschmidt","html_url":"https://github.com/RonnyPfannschmidt","followers_url":"https://api.github.com/users/RonnyPfannschmidt/followers","following_url":"https://api.github.com/users/RonnyPfannschmidt/following{/other_user}","gists_url":"https://api.github.com/users/RonnyPfannschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/RonnyPfannschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RonnyPfannschmidt/subscriptions","organizations_url":"https://api.github.com/users/RonnyPfannschmidt/orgs","repos_url":"https://api.github.com/users/RonnyPfannschmidt/repos","events_url":"https://api.github.com/users/RonnyPfannschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/RonnyPfannschmidt/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T14:59:54Z","updated_at":"2016-01-01T14:59:54Z","body":"Closing as stalled"}}