[New-bugs-announce] [issue10991] trace fails when test imported a temporary file

Brett Cannon report at bugs.python.org
Mon Jan 24 00:31:12 CET 2011

New submission from Brett Cannon <brett at python.org>:

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.

components: Library (Lib)
messages: 126909
nosy: brett.cannon
priority: normal
severity: normal
stage: unit test needed
status: open
title: trace fails when test imported a temporary file
type: behavior
versions: Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list