Patch #1672 by Joseph Armbruster. Use tempdir() to get a temporary directory.
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 @@
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()