[issue5217] testExtractDir (test.test_zipfile.TestWithDirectory) fails when python built with srcdir != builddir
Matthias Klose
report at bugs.python.org
Wed Feb 11 15:51:24 CET 2009
New submission from Matthias Klose <doko at debian.org>:
======================================================================
ERROR: testExtractDir (test.test_zipfile.TestWithDirectory)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/packages/python/2.6/python2.6-2.6.1/Lib/test/test_zipfile.py",
line 991, in testExtractDir
zipf = zipfile.ZipFile(findfile("zipdir.zip"))
File "/home/packages/python/2.6/python2.6-2.6.1/Lib/zipfile.py", line
680, in __init__
self.fp = open(file, modeDict[mode])
IOError: [Errno 2] No such file or directory: 'zipdir.zip'
test.test_support.findfile searches in sys.path and in the directory
where test_support.py is located. this seems to be wrong when python is
built with srcdir != builddir. should the test overwrite the optional
second argument when calling findfile?
----------
components: Tests
messages: 81646
nosy: doko
severity: normal
status: open
title: testExtractDir (test.test_zipfile.TestWithDirectory) fails when python built with srcdir != builddir
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5217>
_______________________________________
More information about the Python-bugs-list
mailing list