mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
fixing the leak introduced in r69304
This commit is contained in:
parent
39c6f7f123
commit
b516c126ef
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import tempfile
|
|
||||||
import shutil
|
import shutil
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
|
|
||||||
|
@ -19,7 +18,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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue