From e9a0e885db9b731a47e8c89204db0a6901de237e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 20 Dec 2007 17:28:10 +0000 Subject: Patch #1672 by Joseph Armbruster. Use tempdir() to get a temporary directory. --- Lib/test/test_subprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index e79159c..33aa013 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -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() -- cgit v0.12