diff options
| author | Benjamin Peterson <benjamin@python.org> | 2008-05-20 21:35:26 +0000 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2008-05-20 21:35:26 +0000 |
| commit | 0c96212a691e860e15ae057f59b5dab114d90c90 (patch) | |
| tree | ab4b9b97a33d6fbc14773a9cbc2efc2072a3fc26 | |
| parent | fbd52989678335fca9cbf0007209bd04513036eb (diff) | |
| download | python-setuptools-git-0c96212a691e860e15ae057f59b5dab114d90c90.tar.gz | |
#2621 rename test.test_support to test.support
| -rw-r--r-- | tests/test_core.py | 10 | ||||
| -rw-r--r-- | tests/test_dist.py | 2 | ||||
| -rw-r--r-- | tests/test_sysconfig.py | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 8e274dd4..170d7675 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -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)) diff --git a/tests/test_dist.py b/tests/test_dist.py index dd077350..f1b11c17 100644 --- a/tests/test_dist.py +++ b/tests/test_dist.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): diff --git a/tests/test_sysconfig.py b/tests/test_sysconfig.py index aa1187e7..c6ab9aa5 100644 --- a/tests/test_sysconfig.py +++ b/tests/test_sysconfig.py @@ -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): |
