New submission from Joseph Armbruster:
Subprocess contains a minor temporary file getter that failed in one of
my terminals due to the method used to obtain a temporary directory
location.
Patch attached.
----------
components: Tests
files: subprocess.patch
messages: 58875
nosy: JosephArmbruster
severity: minor
status: open
title: test_subprocess tempfile issue
versions: Python 3.0
Added file: http://bugs.python.org/file9012/subprocess.patch
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1672>
__________________________________
Index: Lib/test/test_subprocess.py
===================================================================
--- Lib/test/test_subprocess.py (revision 59579)
+++ Lib/test/test_subprocess.py (working copy)
@@ -242,7 +242,7 @@
self.assertEquals(rc, 2)
def test_cwd(self):
- tmpdir = os.getenv("TEMP", "/tmp")
+ tmpdir = tempfile.gettempdir()
# We cannot use os.path.realpath to canonicalize the path,
# since it doesn't expand Tru64 {memb} strings. See bug 1063571.
cwd = os.getcwd()
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com