Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue7295] test_tarfile uses a hardcoded file name

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 9, 2009, 8:25 AM

Post #1 of 3 (274 views)
Permalink
[issue7295] test_tarfile uses a hardcoded file name

New submission from Antoine Pitrou <pitrou [at] free>:

I got this error on my buildbot:

test test_tarfile crashed -- <class 'IOError'>: [Errno 13] Permission
denied: '/tmp/test_tarfile_tmp/testtar.tar.gz'

test_tarfile should not use a hardcoded file name but rely on TESTFN
instead (or any of tempfile.mk*), so that concurrent test runs don't fail.

----------
assignee: lars.gustaebel
components: Library (Lib), Tests
messages: 95086
nosy: lars.gustaebel, pitrou
priority: low
severity: normal
stage: needs patch
status: open
title: test_tarfile uses a hardcoded file name
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7295>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 10, 2009, 1:57 AM

Post #2 of 3 (245 views)
Permalink
[issue7295] test_tarfile uses a hardcoded file name [In reply to]

Lars Gustäbel <lars [at] gustaebel> added the comment:

I attached a patch that uses TESTFN. Please verify that it works and
then one of us checks it in.

----------
keywords: +patch
Added file: http://bugs.python.org/file15304/issue7295.diff

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7295>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 11, 2009, 1:01 PM

Post #3 of 3 (240 views)
Permalink
[issue7295] test_tarfile uses a hardcoded file name [In reply to]

Antoine Pitrou <pitrou [at] free> added the comment:

The patch is fine and I've committed it, thanks!

----------
resolution: -> fixed
stage: needs patch -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7295>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.