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

This commit is contained in:
Guido van Rossum 2007-12-20 17:28:10 +00:00
parent 905c31c73d
commit e9a0e885db
1 changed files with 1 additions and 1 deletions

View 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()