[Python-checkins] r59582 - python/trunk/Lib/test/test_subprocess.py

guido.van.rossum python-checkins at python.org
Thu Dec 20 18:28:10 CET 2007


Author: guido.van.rossum
Date: Thu Dec 20 18:28:10 2007
New Revision: 59582

Modified:
   python/trunk/Lib/test/test_subprocess.py
Log:
Patch #1672 by Joseph Armbruster.  Use tempdir() to get a temporary directory.


Modified: python/trunk/Lib/test/test_subprocess.py
==============================================================================
--- python/trunk/Lib/test/test_subprocess.py	(original)
+++ python/trunk/Lib/test/test_subprocess.py	Thu Dec 20 18:28:10 2007
@@ -241,7 +241,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()


More information about the Python-checkins mailing list