diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-09-29 14:01:40 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-09-29 14:01:40 (GMT) |
commit | 05ab7028ba6dff61fee138fee395c20106f83a6f (patch) | |
tree | 74113e823b6583099128b6b74eddddc25ece7cba /Lib/test/test_import.py | |
parent | 643238eb53805bc77148adbca83cd22e34d8aeba (diff) | |
download | cpython-05ab7028ba6dff61fee138fee395c20106f83a6f.zip cpython-05ab7028ba6dff61fee138fee395c20106f83a6f.tar.gz cpython-05ab7028ba6dff61fee138fee395c20106f83a6f.tar.bz2 |
remove duplicate test from test_import (closes #19122)
Diffstat (limited to 'Lib/test/test_import.py')
-rw-r--r-- | Lib/test/test_import.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index e710122..df08e6a 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -264,17 +264,6 @@ class ImportTests(unittest.TestCase): if TESTFN in sys.modules: del sys.modules[TESTFN] - def test_import_name_binding(self): - # import x.y.z binds x in the current namespace. - import test as x - import test.support - self.assertIs(x, test, x.__name__) - self.assertTrue(hasattr(test.support, "__file__")) - - # import x.y.z as w binds z as w. - import test.support as y - self.assertIs(y, test.support, y.__name__) - def test_import_by_filename(self): path = os.path.abspath(TESTFN) encoding = sys.getfilesystemencoding() |