classification
Title: trace fails when test imported a temporary file
Type: behavior Stage: test needed
Components: Library (Lib) Versions: Python 3.4
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List:
Priority: normal Keywords:

Created on 2011-01-23 23:31 by brett.cannon, last changed 2013-01-11 16:31 by brett.cannon.

Messages (1)
msg126909 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2011-01-23 23:31
If you run ``test.regrtest -T`` you will discover that (at least) test_importlib and test_runpy prevent coverage data from being written out as 'trace' will try to find files which no longer exist. Both test suites create temp files, import them, and then delete them. Unfortunately 'trace' doesn't ignore that fact and throws an exception that the temporary files are gone.

Since the file is simply gone it probably makes sense to have 'trace' just print out a warning that the file could not be found and move on.
History
Date User Action Args
2013-01-11 16:31:42brett.cannonsetnosy: - brett.cannon

versions: + Python 3.4, - Python 3.3
2011-01-23 23:31:12brett.cannoncreate