diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2023-04-22 13:52:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-22 13:52:51 -0400 |
commit | 916de04fd1838530096336aadb3b94b774ed6c90 (patch) | |
tree | 99006797b2ef7b0c8a55a7e935c122ca8b505140 /Lib/test/test_importlib/test_metadata_api.py | |
parent | 3d2a46845b67407e2436d910b2e1740c34f4f10d (diff) | |
download | cpython-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.py | 13 |
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' |