diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2022-06-26 01:04:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 01:04:28 (GMT) |
commit | 38612a05b5de33fde82d7960418527b7cfaa2e7c (patch) | |
tree | fc311ccb634a3bf6fb025bf5b064ead486e7be25 /Lib/test/test_importlib/test_metadata_api.py | |
parent | 9af6b75298d066e89646acf8df1704bef183a6f8 (diff) | |
download | cpython-38612a05b5de33fde82d7960418527b7cfaa2e7c.zip cpython-38612a05b5de33fde82d7960418527b7cfaa2e7c.tar.gz cpython-38612a05b5de33fde82d7960418527b7cfaa2e7c.tar.bz2 |
gh-93259: Validate arg to ``Distribution.from_name``. (GH-94270)
Syncs with importlib_metadata 4.12.0.
Diffstat (limited to 'Lib/test/test_importlib/test_metadata_api.py')
-rw-r--r-- | Lib/test/test_importlib/test_metadata_api.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_importlib/test_metadata_api.py b/Lib/test/test_importlib/test_metadata_api.py index c86bb4d..69c78e9 100644 --- a/Lib/test/test_importlib/test_metadata_api.py +++ b/Lib/test/test_importlib/test_metadata_api.py @@ -89,15 +89,15 @@ class APITests( self.assertIn(ep.dist.name, ('distinfo-pkg', 'egginfo-pkg')) self.assertEqual(ep.dist.version, "1.0.0") - def test_entry_points_unique_packages(self): + def test_entry_points_unique_packages_normalized(self): """ Entry points should only be exposed for the first package - on sys.path with a given name. + on sys.path with a given name (even when normalized). """ alt_site_dir = self.fixtures.enter_context(fixtures.tempdir()) self.fixtures.enter_context(self.add_sys_path(alt_site_dir)) alt_pkg = { - "distinfo_pkg-1.1.0.dist-info": { + "DistInfo_pkg-1.1.0.dist-info": { "METADATA": """ Name: distinfo-pkg Version: 1.1.0 |