summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2023-04-21 15:30:30 (GMT)
committerGitHub <noreply@github.com>2023-04-21 15:30:30 (GMT)
commitdc328d398d8f65ec6d2fa493e16ceee75f6d774a (patch)
treea9f43af89dcf743f65f0aba105abda5c2a80aa54
parenta4967d9d5974562dc0b3d2fcb494483cce9b8122 (diff)
downloadcpython-dc328d398d8f65ec6d2fa493e16ceee75f6d774a.zip
cpython-dc328d398d8f65ec6d2fa493e16ceee75f6d774a.tar.gz
cpython-dc328d398d8f65ec6d2fa493e16ceee75f6d774a.tar.bz2
gh-103661: Skip failing test on Windows. (#103662)
-rw-r--r--Lib/test/test_importlib/test_metadata_api.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/test_metadata_api.py b/Lib/test/test_importlib/test_metadata_api.py
index 33c6e85..d902786 100644
--- a/Lib/test/test_importlib/test_metadata_api.py
+++ b/Lib/test/test_importlib/test_metadata_api.py
@@ -76,12 +76,23 @@ 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 tests:
+ for pkg_name, expect_content in self._workaround_103661(tests):
with self.subTest(pkg_name):
top_level = [
path for path in files(pkg_name) if path.name == 'top_level.txt'