[Python-bugs-list] [ python-Bugs-731403 ] test_tarfile writes in Lib/test directory
SourceForge.net
noreply@sourceforge.net
Thu, 12 Jun 2003 01:03:19 -0700
Bugs item #731403, was opened at 2003-05-02 08:20
Message generated for change (Comment added) made by bcannon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=731403&group_id=5470
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Brett Cannon (bcannon)
Summary: test_tarfile writes in Lib/test directory
Initial Comment:
Test_tarfile writes a file in the Lib/test directory, which fails if Python
has been installed read-only. It would be better if it used
test_support.TESTFN as the basis for a filename to write to.
Here's the message for a binary install on MacOSX (framework
Python):
test test_tarfile crashed -- exceptions.IOError: [Errno 13] Permission
denied: '/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/test/testtar.tar.gz'
----------------------------------------------------------------------
>Comment By: Brett Cannon (bcannon)
Date: 2003-06-12 01:03
Message:
Logged In: YES
user_id=357491
Fixed the temp file name to use test_support.TESTFN and the
temp directory to use tempfile.gettempdir . Also fixed the
fetching of path names to use the functions used in the file
instead of getting it from the global variables.
Changed filename to be absolute for testar.tar instead of using
os.extsep since name is locked in since it is in CVS.
All checked in as revision 1.10 .
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=731403&group_id=5470