Antoine Pitrou <pit...@free.fr> 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 <rep...@bugs.python.org> <http://bugs.python.org/issue7248> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com