]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 69587 via svnmerge from
authorTarek Ziadé <ziade.tarek@gmail.com>
Fri, 13 Feb 2009 16:26:35 +0000 (16:26 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Fri, 13 Feb 2009 16:26:35 +0000 (16:26 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r69587 | tarek.ziade | 2009-02-13 17:23:57 +0100 (Fri, 13 Feb 2009) | 9 lines

  Merged revisions 69585 via svnmerge from
  svn+ssh://pythondev@svn.python.org/python/trunk

  ........
    r69585 | tarek.ziade | 2009-02-13 17:13:16 +0100 (Fri, 13 Feb 2009) | 1 line

    reverted leak fix, to use the one done in py3k branch (r67382)
  ........
................

Lib/distutils/tests/test_build_ext.py

index 02c42aecb70e1db809c0a78dd7d763857670092f..4c5723255ad39d4d4fb0e9b6d93d58882675504c 100644 (file)
@@ -1,5 +1,6 @@
 import sys
 import os
+import tempfile
 import shutil
 from io import StringIO
 
@@ -18,8 +19,7 @@ class BuildExtTestCase(unittest.TestCase):
     def setUp(self):
         # Create a simple test environment
         # Note that we're making changes to sys.path
-        self.tmp_dir = os.path.join(os.path.dirname(__file__), 'xx')
-        os.mkdir(self.tmp_dir)
+        self.tmp_dir = tempfile.mkdtemp(prefix="pythontest_")
         self.sys_path = sys.path[:]
         sys.path.append(self.tmp_dir)