[Python-checkins] r69553 - in python/branches/py3k: Lib/distutils/tests/test_build_ext.py

tarek.ziade python-checkins at python.org
Thu Feb 12 22:02:08 CET 2009


Author: tarek.ziade
Date: Thu Feb 12 22:02:07 2009
New Revision: 69553

Log:
Merged revisions 69551 via svnmerge from 
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
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/distutils/tests/test_build_ext.py

Modified: python/branches/py3k/Lib/distutils/tests/test_build_ext.py
==============================================================================
--- python/branches/py3k/Lib/distutils/tests/test_build_ext.py	(original)
+++ python/branches/py3k/Lib/distutils/tests/test_build_ext.py	Thu Feb 12 22:02:07 2009
@@ -1,6 +1,5 @@
 import sys
 import os
-import tempfile
 import shutil
 from io import StringIO
 
@@ -23,7 +22,8 @@
     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)


More information about the Python-checkins mailing list