mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
remove duplicate test from test_import (closes #19122)
This commit is contained in:
parent
643238eb53
commit
05ab7028ba
1 changed files with 0 additions and 11 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue