[Python-checkins] cpython (3.3): remove duplicate test from test_import (closes #19122)
benjamin.peterson
python-checkins at python.org
Sun Sep 29 16:02:45 CEST 2013
http://hg.python.org/cpython/rev/a25fe5675ea4
changeset: 85828:a25fe5675ea4
branch: 3.3
parent: 85825:48d28de5bdf8
user: Benjamin Peterson <benjamin at python.org>
date: Sun Sep 29 10:01:40 2013 -0400
summary:
remove duplicate test from test_import (closes #19122)
files:
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
--- a/Lib/test/test_import.py
+++ b/Lib/test/test_import.py
@@ -264,17 +264,6 @@
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()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list