New issue 515: Cache causes current code to be ignored https://bitbucket.org/hpk42/pytest/issue/515/cache-causes-current-code-to-be-ignored
Thomas Lotze: I just ran across an issue with pytest 2.5.2 which I can unfortunately only describe qualitatively: In a development environment that I had been using for some months, I ran one test selected using the -k option one of the test assertions failed with a custom error message that reported a traceback from an asynchronously called message queue handler implemented by the same package I was testing. The traceback already reported a line number that didn't match the code in its current state. I added "raise RuntimeError" at different places in the method in question but nothing changed, the error wasn't raised. The log output captured on stdout contained current timestamps issued by the message queue server. After deleting the .cache directory pytest was using, suddenly the current code was used, raising the RuntimeError and after that was removed, actually passing the test. Since I actually deleted the cache I cannot now report what it contained and what the timestamps of any files were. _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit