summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-02-12 20:56:21 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-02-12 20:56:21 (GMT)
commitb516c126ef7b69e4b6560fe98ed4529f21fdb7eb (patch)
treea3d0b2a4983ae086fe2064b79b090b11a7b93c4b /Lib
parent39c6f7f123d77bb3b9fde19ca0e56559f9521987 (diff)
downloadcpython-b516c126ef7b69e4b6560fe98ed4529f21fdb7eb.zip
cpython-b516c126ef7b69e4b6560fe98ed4529f21fdb7eb.tar.gz
cpython-b516c126ef7b69e4b6560fe98ed4529f21fdb7eb.tar.bz2
fixing the leak introduced in r69304
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/tests/test_build_ext.py4
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 780660d..1891e68 100644
--- a/Lib/distutils/tests/test_build_ext.py
+++ b/Lib/distutils/tests/test_build_ext.py
@@ -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)