Commit e9a0e885 authored by Guido van Rossum's avatar Guido van Rossum

Patch #1672 by Joseph Armbruster. Use tempdir() to get a temporary directory.

parent 905c31c7
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment