summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/test_metadata_api.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-11-05 13:55:04 (GMT)
committerGitHub <noreply@github.com>2022-11-05 13:55:04 (GMT)
commit07734a42dbea13900199334ff9cee4af0e2ce2fc (patch)
tree740f6e453ca61b6c0aeb264cd96ccb6db5f20093 /Lib/test/test_importlib/test_metadata_api.py
parent46a493e2db942cada2dd1abd468d52725ceba992 (diff)
downloadcpython-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.py6
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