This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: testExtractDir (test.test_zipfile.TestWithDirectory) fails when python built with srcdir != builddir
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.4, Python 3.5, Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, berker.peksag, doko, eric.araujo
Priority: normal Keywords:

Created on 2009-02-11 14:51 by doko, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg81646 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2009-02-11 14:51
======================================================================
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?
msg99403 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2010-02-16 12:54
this works with 2.7 alpha3, won't fix for 3.0
msg112240 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-08-01 00:41
I suggest to close this as outdated/fixed/wontfix then.
msg115136 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-08-27 22:02
3.0 is unsupported; does the bug exist for 3.1 or 3.2?
msg221694 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-06-27 17:10
Presumably this can be closed as "out of date"?
msg221697 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2014-06-27 17:40
> Presumably this can be closed as "out of date"?

Yes.

   $ mkdir objdir
   $ cd objdir
   $ .././configure
   $ make
   $ ./python -m test -v test_zipfile

   Ran 164 tests in 38.202s

   OK (skipped=1)
   1 test OK.
History
Date User Action Args
2022-04-11 14:56:45adminsetgithub: 49467
2014-06-27 17:40:07berker.peksagsetstatus: open -> closed

nosy: + berker.peksag
messages: + msg221697

resolution: out of date
stage: resolved
2014-06-27 17:10:13BreamoreBoysetversions: + Python 2.7, Python 3.4, Python 3.5, - Python 2.6, Python 3.1
nosy: + BreamoreBoy

messages: + msg221694

type: behavior
2010-08-28 09:02:30eric.araujosetstatus: closed -> open
2010-08-27 22:02:44eric.araujosetstatus: pending -> closed

messages: + msg115136
2010-08-01 00:41:04eric.araujosetstatus: open -> pending
nosy: + eric.araujo
messages: + msg112240

2010-02-16 12:54:16dokosetmessages: + msg99403
versions: - Python 3.0, Python 2.7
2009-02-11 14:51:23dokocreate