File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Lib/test/test_importlib/metadata Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ import functools
2+ import os
3+ import unittest
4+
5+
6+ @functools .cache
7+ def skip_on_buildbot (func ):
8+ """
9+ #132947 revealed that after applying some otherwise stable
10+ changes, only on some buildbot runners, the tests will fail with
11+ ResourceWarnings.
12+ """
13+ is_buildbot = 'BUILDBOT_RUN' in os .environ or 'BUILDBOT' in os .environ
14+ skipper = unittest .skip ("Causes Resource Warnings (python/cpython#132947)" )
15+ wrapper = skipper if is_buildbot else lambda x : x
16+ return wrapper (func )
Original file line number Diff line number Diff line change 2222)
2323
2424from . import fixtures
25+ from . import _issue132947
2526from ._path import Symlink
2627
2728
@@ -357,6 +358,7 @@ def test_packages_distributions_example(self):
357358 self ._fixture_on_path ('example-21.12-py3-none-any.whl' )
358359 assert packages_distributions ()['example' ] == ['example' ]
359360
361+ @_issue132947 .skip_if_buildbot
360362 def test_packages_distributions_example2 (self ):
361363 """
362364 Test packages_distributions on a wheel built
You can’t perform that action at this time.
0 commit comments