[issue7431] UnboundLocalError during test.test_linecache.LineCacheTests
New submission from ivank i...@ludios.org: Python 2.7, svn r76655. I ran the tests with python2.7 Lib/test/testall.py test-results.txt test_linecache test_checkcache (test.test_linecache.LineCacheTests) ... ERROR test_clearcache (test.test_linecache.LineCacheTests) ... ok test_getline (test.test_linecache.LineCacheTests) ... ok == ERROR: test_checkcache (test.test_linecache.LineCacheTests) -- Traceback (most recent call last): File /opt/Python-latest/lib/python2.7/test/test_linecache.py, line 121, in test_checkcache source.close() UnboundLocalError: local variable 'source' referenced before assignment -- Ran 3 tests in 0.022s FAILED (errors=1) test test_linecache failed -- Traceback (most recent call last): File /opt/Python-latest/lib/python2.7/test/test_linecache.py, line 121, in test_checkcache source.close() UnboundLocalError: local variable 'source' referenced before assignment -- components: Library (Lib) messages: 95948 nosy: ivank severity: normal status: open title: UnboundLocalError during test.test_linecache.LineCacheTests type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7431] UnboundLocalError during test.test_linecache.LineCacheTests
ivank i...@ludios.org added the comment: This error is just masking a Permission denied error during source = open(source_name, 'w') so I guess it's not very important, just annoying. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7431] UnboundLocalError during test.test_linecache.LineCacheTests
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray components: +Tests -Library (Lib) nosy: +r.david.murray priority: - low versions: +Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7431] UnboundLocalError during test.test_linecache.LineCacheTests
R. David Murray rdmur...@bitdance.com added the comment: Fixed in r76659, r76660, r76661, and r76662. I also changed the open to use 'with' so that errors raised by the open will not be masked. Flox, given how active you are being, you might enjoy joining us in #python-dev on freenode. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com