diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-02-13 16:23:57 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-02-13 16:23:57 (GMT) |
commit | d7b5f66e52867cb6e6c6e32170e0d45114641d8d (patch) | |
tree | 19ae9b31d487e5af062cc925d6f7896883b671e5 /Lib/distutils | |
parent | 79eee6ba6bfde635bed0992e230d22af2e1e8478 (diff) | |
download | cpython-d7b5f66e52867cb6e6c6e32170e0d45114641d8d.zip cpython-d7b5f66e52867cb6e6c6e32170e0d45114641d8d.tar.gz cpython-d7b5f66e52867cb6e6c6e32170e0d45114641d8d.tar.bz2 |
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)
........
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/test_build_ext.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/tests/test_build_ext.py b/Lib/distutils/tests/test_build_ext.py index aa5378c..5e42943 100644 --- a/Lib/distutils/tests/test_build_ext.py +++ b/Lib/distutils/tests/test_build_ext.py @@ -1,5 +1,6 @@ import sys import os +import tempfile import shutil from io import StringIO @@ -22,8 +23,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) shutil.copy(_get_source_filename(), self.tmp_dir) |