diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2022-11-05 13:55:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 13:55:04 (GMT) |
commit | 07734a42dbea13900199334ff9cee4af0e2ce2fc (patch) | |
tree | 740f6e453ca61b6c0aeb264cd96ccb6db5f20093 /Lib/test/test_importlib/test_metadata_api.py | |
parent | 46a493e2db942cada2dd1abd468d52725ceba992 (diff) | |
download | cpython-07734a42dbea13900199334ff9cee4af0e2ce2fc.zip cpython-07734a42dbea13900199334ff9cee4af0e2ce2fc.tar.gz cpython-07734a42dbea13900199334ff9cee4af0e2ce2fc.tar.bz2 |
[3.11] gh-98706: Sync with importlib_metadata 4.13.0. (GH-98875)
These changes are already applied to main but have been selected from importlib_metadata 4.x for their bug fixes.
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 |