]> granicus.if.org Git - python/commitdiff
remove duplicate test from test_import (closes #19122)
authorBenjamin Peterson <benjamin@python.org>
Sun, 29 Sep 2013 14:01:40 +0000 (10:01 -0400)
committerBenjamin Peterson <benjamin@python.org>
Sun, 29 Sep 2013 14:01:40 +0000 (10:01 -0400)
Lib/test/test_import.py

index e7101221562fb264e075be845f47c003e9775535..df08e6a86f6708ee53066859b74478181552e223 100644 (file)
@@ -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()