summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-20 21:35:26 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-20 21:35:26 (GMT)
commitee8712cda46338d223509cc5751fd36509ad3860 (patch)
treebb9d363b4276566415457980472001c7e3ec2bed /Lib/test/test_import.py
parent6a654814ea3f3a918935762ffdcd33ae98e00278 (diff)
downloadcpython-ee8712cda46338d223509cc5751fd36509ad3860.zip
cpython-ee8712cda46338d223509cc5751fd36509ad3860.tar.gz
cpython-ee8712cda46338d223509cc5751fd36509ad3860.tar.bz2
#2621 rename test.test_support to test.support
Diffstat (limited to 'Lib/test/test_import.py')
-rw-r--r--Lib/test/test_import.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index 1c9dd3a..81e221d 100644
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -1,4 +1,4 @@
-from test.test_support import TESTFN, run_unittest, catch_warning
+from test.support import TESTFN, run_unittest, catch_warning
import unittest
import os
@@ -8,7 +8,7 @@ import sys
import py_compile
import warnings
import imp
-from test.test_support import unlink, TESTFN, unload
+from test.support import unlink, TESTFN, unload
def remove_files(name):
@@ -146,13 +146,13 @@ class ImportTest(unittest.TestCase):
def test_import_name_binding(self):
# import x.y.z binds x in the current namespace
import test as x
- import test.test_support
+ import test.support
self.assert_(x is test, x.__name__)
- self.assert_(hasattr(test.test_support, "__file__"))
+ self.assert_(hasattr(test.support, "__file__"))
# import x.y.z as w binds z as w
- import test.test_support as y
- self.assert_(y is test.test_support, y.__name__)
+ import test.support as y
+ self.assert_(y is test.support, y.__name__)
def test_import_initless_directory_warning(self):
with catch_warning():