
report at bugs
Nov 2, 2009, 12:16 PM
Post #3 of 5
(270 views)
Permalink
|
|
[issue7248] test_importlib uses a fixed name in /tmp
[In reply to]
|
|
Antoine Pitrou <pitrou [at] free> added the comment: It sometimes seems to trigger another error: ====================================================================== ERROR: test_package (importlib.test.source.test_file_loader.SimpleTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/lib/buildbot/cpython/trunk.pitrou-ubuntu/build/Lib/importlib/test/source/util.py", line 78, in create_modules with open(file_path, 'w') as file: IOError: [Errno 13] Permission denied: '/tmp/_pkg/__init__.py' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/var/lib/buildbot/cpython/trunk.pitrou-ubuntu/build/Lib/importlib/test/source/test_file_loader.py", line 33, in test_package with source_util.create_modules('_pkg.__init__') as mapping: File "/var/lib/buildbot/cpython/trunk.pitrou-ubuntu/build/Lib/contextlib.py", line 17, in __enter__ return next(self.gen) File "/var/lib/buildbot/cpython/trunk.pitrou-ubuntu/build/Lib/importlib/test/source/util.py", line 88, in create_modules state_manager.__exit__(None, None, None) UnboundLocalError: local variable 'state_manager' referenced before assignment ---------- _______________________________________ Python tracker <report [at] bugs> <http://bugs.python.org/issue7248> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
|