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 /tests/test_core.py | |
| parent | fbd52989678335fca9cbf0007209bd04513036eb (diff) | |
| download | python-setuptools-git-0c96212a691e860e15ae057f59b5dab114d90c90.tar.gz | |
#2621 rename test.test_support to test.support
Diffstat (limited to 'tests/test_core.py')
| -rw-r--r-- | tests/test_core.py | 10 |
1 files changed, 5 insertions, 5 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)) |
