[issue17143] trace.py uses _warn without importing it

Ezio Melotti report at bugs.python.org
Fri Feb 15 20:50:35 CET 2013


Ezio Melotti added the comment:

The windows buildbots are failing with the following error:
ERROR: test_deprecated_find_strings (test.test_trace.TestDeprecatedMethods)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_trace.py", line 401, in test_deprecated_find_strings
    trace.find_strings(fd.name)
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\trace.py", line 850, in find_strings
    return _find_strings(filename, encoding=None)
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\trace.py", line 422, in _find_strings
    with open(filename, encoding=encoding) as f:
PermissionError: [Errno 13] Permission denied: 'c:\\users\\buildbot\\appdata\\local\\temp\\tmp_08yph'

See:
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.3/builds/491/steps/test/logs/stdio
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/1473/steps/test/logs/stdio

The problem seems to be related to the use of NamedTemporaryFile in test_deprecated_find_strings, but doesn't seem to affect test_deprecated_find_executable_linenos.

There's also a warning for test_ignored:
test_ignored (test.test_trace.Test_Ignore) ... Not printing coverage data for 'c:\\users\\buildbot\\appdata\\local\\temp\\tmpwrqs7_': [Errno 13] Permission denied: 'c:\\users\\buildbot\\appdata\\local\\temp\\tmpwrqs7_'

This was probably here already, but went unnoticed because it doesn't cause failures and it's probably printed in verbose mode only.

----------
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17143>
_______________________________________


More information about the Python-bugs-list mailing list