summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-12-20 17:28:10 (GMT)
committerGuido van Rossum <guido@python.org>2007-12-20 17:28:10 (GMT)
commite9a0e885db9b731a47e8c89204db0a6901de237e (patch)
treeea6b1fc6fe1f83715ea109a9dda91e6863d1ad18 /Lib
parent905c31c73dd5b00a0fd7f2736b4c273f6e4cfe59 (diff)
downloadcpython-e9a0e885db9b731a47e8c89204db0a6901de237e.zip
cpython-e9a0e885db9b731a47e8c89204db0a6901de237e.tar.gz
cpython-e9a0e885db9b731a47e8c89204db0a6901de237e.tar.bz2
Patch #1672 by Joseph Armbruster. Use tempdir() to get a temporary directory.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_subprocess.py2
1 files changed, 1 insertions, 1 deletions
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()