]> granicus.if.org Git - python/commitdiff
fixing the leak introduced in r69304
authorTarek Ziadé <ziade.tarek@gmail.com>
Thu, 12 Feb 2009 20:56:21 +0000 (20:56 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Thu, 12 Feb 2009 20:56:21 +0000 (20:56 +0000)
Lib/distutils/tests/test_build_ext.py

index 780660da85ffbcc81f42cfa0bcbdc329526f2dde..1891e682bc745364d9c8600dd7fb4dc24e8003d6 100644 (file)
@@ -1,6 +1,5 @@
 import sys
 import os
-import tempfile
 import shutil
 from StringIO import StringIO
 
@@ -19,7 +18,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)