Commit 0c96212a authored by Benjamin Peterson's avatar Benjamin Peterson

#2621 rename test.test_support to test.support

parent fbd52989
......@@ -5,7 +5,7 @@ import distutils.core
import os
import shutil
import sys
import test.test_support
import test.support
import unittest
......@@ -39,13 +39,13 @@ class CoreTestCase(unittest.TestCase):
self.cleanup_testfn()
def cleanup_testfn(self):
path = test.test_support.TESTFN
path = test.support.TESTFN
if os.path.isfile(path):
os.remove(path)
elif os.path.isdir(path):
shutil.rmtree(path)
def write_setup(self, text, path=test.test_support.TESTFN):
def write_setup(self, text, path=test.support.TESTFN):
open(path, "w").write(text)
return path
......@@ -63,8 +63,8 @@ class CoreTestCase(unittest.TestCase):
cwd = os.getcwd()
# Create a directory and write the setup.py file there:
os.mkdir(test.test_support.TESTFN)
setup_py = os.path.join(test.test_support.TESTFN, "setup.py")
os.mkdir(test.support.TESTFN)
setup_py = os.path.join(test.support.TESTFN, "setup.py")
distutils.core.run_setup(
self.write_setup(setup_prints_cwd, path=setup_py))
......
......@@ -7,7 +7,7 @@ import io
import sys
import unittest
from test.test_support import TESTFN
from test.support import TESTFN
class test_dist(distutils.cmd.Command):
......
......@@ -4,7 +4,7 @@ from distutils import sysconfig
import os
import unittest
from test.test_support import TESTFN
from test.support import TESTFN
class SysconfigTestCase(unittest.TestCase):
......
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