aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_importlib/test_namespace_pkgs.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2022-08-04 17:24:26 -0700
committerGitHub <noreply@github.com>2022-08-04 17:24:26 -0700
commite1182bc3776ea7cfdd3f82d5ba4fdfee40ae57ee (patch)
treea83cbfa65f28dd2de5cefdabecd7daa925152f28 /Lib/test/test_importlib/test_namespace_pkgs.py
parent44f1f63ad5cf00b6f50cef0cc1a62c42632138be (diff)
downloadcpython-e1182bc3776ea7cfdd3f82d5ba4fdfee40ae57ee.tar.gz
cpython-e1182bc3776ea7cfdd3f82d5ba4fdfee40ae57ee.zip
gh-94619: Remove long deprecated methods module_repr() and load_module() (#94624)
* gh-94619: Remove long deprecated methods module_repr() and load_module() Closes #94619 * Update Misc/NEWS.d/next/Library/2022-07-06-14-57-33.gh-issue-94619.PRqKVX.rst Fix typo Co-authored-by: Brett Cannon <brett@python.org> Co-authored-by: Brett Cannon <brett@python.org>
Diffstat (limited to 'Lib/test/test_importlib/test_namespace_pkgs.py')
-rw-r--r--Lib/test/test_importlib/test_namespace_pkgs.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/test_importlib/test_namespace_pkgs.py b/Lib/test/test_importlib/test_namespace_pkgs.py
index cd08498545e..f451f7547b3 100644
--- a/Lib/test/test_importlib/test_namespace_pkgs.py
+++ b/Lib/test/test_importlib/test_namespace_pkgs.py
@@ -79,13 +79,6 @@ class SingleNamespacePackage(NamespacePackageTest):
with self.assertRaises(ImportError):
import foo.two
- def test_module_repr(self):
- import foo.one
- with warnings.catch_warnings():
- warnings.simplefilter("ignore")
- self.assertEqual(foo.__spec__.loader.module_repr(foo),
- "<module 'foo' (namespace)>")
-
class DynamicPathNamespacePackage(NamespacePackageTest):
paths = ['portion1']