]> granicus.if.org Git - python/commitdiff
Patch #1672 by Joseph Armbruster. Use tempdir() to get a temporary directory.
authorGuido van Rossum <guido@python.org>
Thu, 20 Dec 2007 17:28:10 +0000 (17:28 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 20 Dec 2007 17:28:10 +0000 (17:28 +0000)
Lib/test/test_subprocess.py

index e79159c0b179cb4f156e7b34f8372ffc4d425383..33aa013665ad76c8f94234a1a5f0ad9531bb0c72 100644 (file)
@@ -241,7 +241,7 @@ class ProcessTestCase(unittest.TestCase):
         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()