aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_importlib/test_metadata_api.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2023-04-22 13:52:51 -0400
committerGitHub <noreply@github.com>2023-04-22 13:52:51 -0400
commit916de04fd1838530096336aadb3b94b774ed6c90 (patch)
tree99006797b2ef7b0c8a55a7e935c122ca8b505140 /Lib/test/test_importlib/test_metadata_api.py
parent3d2a46845b67407e2436d910b2e1740c34f4f10d (diff)
downloadcpython-916de04fd1838530096336aadb3b94b774ed6c90.tar.gz
cpython-916de04fd1838530096336aadb3b94b774ed6c90.zip
gh-103661: Apply bugfix from importlib_metadata 6.5.1 and restore test. (#103681)
Diffstat (limited to 'Lib/test/test_importlib/test_metadata_api.py')
-rw-r--r--Lib/test/test_importlib/test_metadata_api.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/Lib/test/test_importlib/test_metadata_api.py b/Lib/test/test_importlib/test_metadata_api.py
index d9027861848..33c6e85ee94 100644
--- a/Lib/test/test_importlib/test_metadata_api.py
+++ b/Lib/test/test_importlib/test_metadata_api.py
@@ -76,23 +76,12 @@ class APITests(
expect_content,
)
- @staticmethod
- def _workaround_103661(tests):
- """
- Skip failing test for now is it's failing on buildbot workers.
- See https://github.com/python/cpython/issues/103661.
- """
- import platform
- if platform.system() == 'Windows':
- tests.remove(('egg_with_no_modules-pkg', '\n'))
- return tests
-
def test_read_text(self):
tests = [
('egginfo-pkg', 'mod\n'),
('egg_with_no_modules-pkg', '\n'),
]
- for pkg_name, expect_content in self._workaround_103661(tests):
+ for pkg_name, expect_content in tests:
with self.subTest(pkg_name):
top_level = [
path for path in files(pkg_name) if path.name == 'top_level.txt'