]> granicus.if.org Git - python/commitdiff
Merged revisions 69551 via svnmerge from
authorTarek Ziadé <ziade.tarek@gmail.com>
Thu, 12 Feb 2009 21:02:07 +0000 (21:02 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Thu, 12 Feb 2009 21:02:07 +0000 (21:02 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r69551 | tarek.ziade | 2009-02-12 21:56:21 +0100 (Thu, 12 Feb 2009) | 1 line

  fixing the leak introduced in r69304
........

Lib/distutils/tests/test_build_ext.py

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