Skip to content

Commit dc328d3

Browse files
authored
gh-103661: Skip failing test on Windows. (#103662)
1 parent a4967d9 commit dc328d3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Lib/test/test_importlib/test_metadata_api.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,23 @@ def test_for_top_level(self):
7676
expect_content,
7777
)
7878

79+
@staticmethod
80+
def _workaround_103661(tests):
81+
"""
82+
Skip failing test for now is it's failing on buildbot workers.
83+
See https://github.com/python/cpython/issues/103661.
84+
"""
85+
import platform
86+
if platform.system() == 'Windows':
87+
tests.remove(('egg_with_no_modules-pkg', '\n'))
88+
return tests
89+
7990
def test_read_text(self):
8091
tests = [
8192
('egginfo-pkg', 'mod\n'),
8293
('egg_with_no_modules-pkg', '\n'),
8394
]
84-
for pkg_name, expect_content in tests:
95+
for pkg_name, expect_content in self._workaround_103661(tests):
8596
with self.subTest(pkg_name):
8697
top_level = [
8798
path for path in files(pkg_name) if path.name == 'top_level.txt'

0 commit comments

Comments
 (0)