We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adf1dc9 commit 4431832Copy full SHA for 4431832
Lib/test/test_importlib/metadata/_issue132947.py
@@ -8,7 +8,8 @@ def skip_on_buildbot(func):
8
changes, only on some buildbot runners, the tests will fail with
9
ResourceWarnings.
10
"""
11
- is_buildbot = 'BUILDBOT_RUN' in os.environ or 'BUILDBOT' in os.environ
+ is_buildbot = any(key.startswith('BUILDBOT') for key in os.environ)
12
+ assert is_buildbot, f'no buildbot in {list(os.environ)}'
13
skipper = unittest.skip("Causes Resource Warnings (python/cpython#132947)")
14
wrapper = skipper if is_buildbot else lambda x: x
15
return wrapper(func)
0 commit comments