Commit f2c97b50 authored by Tarek Ziadé's avatar Tarek Ziadé

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
........
parent a80b2645
import sys import sys
import os import os
import tempfile
import shutil import shutil
from io import StringIO from io import StringIO
...@@ -23,7 +22,8 @@ class BuildExtTestCase(unittest.TestCase): ...@@ -23,7 +22,8 @@ class BuildExtTestCase(unittest.TestCase):
def setUp(self): def setUp(self):
# Create a simple test environment # Create a simple test environment
# Note that we're making changes to sys.path # 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[:] self.sys_path = sys.path[:]
sys.path.append(self.tmp_dir) sys.path.append(self.tmp_dir)
shutil.copy(_get_source_filename(), self.tmp_dir) shutil.copy(_get_source_filename(), self.tmp_dir)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment