We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4967d9 commit dc328d3Copy full SHA for dc328d3
Lib/test/test_importlib/test_metadata_api.py
@@ -76,12 +76,23 @@ def test_for_top_level(self):
76
expect_content,
77
)
78
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
+
90
def test_read_text(self):
91
tests = [
92
('egginfo-pkg', 'mod\n'),
93
('egg_with_no_modules-pkg', '\n'),
94
]
- for pkg_name, expect_content in tests:
95
+ for pkg_name, expect_content in self._workaround_103661(tests):
96
with self.subTest(pkg_name):
97
top_level = [
98
path for path in files(pkg_name) if path.name == 'top_level.txt'
0 commit comments