[New-bugs-announce] [issue10971] python Lib/test/regrtest.py -R 3:3: test_zipimport_support fails

STINNER Victor report at bugs.python.org
Fri Jan 21 12:14:50 CET 2011

New submission from STINNER Victor <victor.stinner at haypocalc.com>:

"./python Lib/test/regrtest.py test_zipimport_support" pass, but not with the -R option.

$ ./python Lib/test/regrtest.py -R 3:3: test_zipimport_support
[1/1] test_zipimport_support
beginning 6 repetitions
test test_zipimport_support failed -- Traceback (most recent call last):
  File "/home/haypo/prog/SVN/py3k/Lib/test/test_zipimport_support.py", line 96, in test_inspect_getsource_issue4223
    self.assertEqual(inspect.getsource(zip_pkg.foo), test_src)
  File "/home/haypo/prog/SVN/py3k/Lib/inspect.py", line 693, in getsource
    lines, lnum = getsourcelines(object)
  File "/home/haypo/prog/SVN/py3k/Lib/inspect.py", line 682, in getsourcelines
    lines, lnum = findsource(object)
  File "/home/haypo/prog/SVN/py3k/Lib/inspect.py", line 530, in findsource
    raise IOError('could not get source code')
IOError: could not get source code

1 test failed:

components: Tests
messages: 126718
nosy: haypo
priority: normal
severity: normal
status: open
title: python Lib/test/regrtest.py -R 3:3: test_zipimport_support fails
versions: Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list