[New-bugs-announce] [issue7431] UnboundLocalError during test.test_linecache.LineCacheTests

ivank report at bugs.python.org
Thu Dec 3 23:12:25 CET 2009


New submission from ivank <ivan at 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 <report at bugs.python.org>
<http://bugs.python.org/issue7431>
_______________________________________


More information about the New-bugs-announce mailing list