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: test_tarfile writes in Lib/test directory
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, jackjansen
Priority: normal Keywords:

Created on 2003-05-02 15:20 by jackjansen, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Messages (2)
msg15821 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-05-02 15:20
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'
msg15822 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2003-06-12 08:03
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 .
History
Date User Action Args
2022-04-10 16:08:31adminsetgithub: 38425
2003-05-02 15:20:24jackjansencreate