Skip to content

Commit 4fab683

Browse files
committed
gh-103053: Run tools test_freeze on buildbot
No longer skip test_tools.test_freeze on buildbots. Remove test.support.skip_if_buildbot() function. The skip was added when freeze tests were added in commit 13d9205.
1 parent a4baa9e commit 4fab683

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

Lib/test/support/__init__.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -384,17 +384,6 @@ def wrapper(*args, **kw):
384384
return decorator
385385

386386

387-
def skip_if_buildbot(reason=None):
388-
"""Decorator raising SkipTest if running on a buildbot."""
389-
if not reason:
390-
reason = 'not suitable for buildbots'
391-
try:
392-
isbuildbot = getpass.getuser().lower() == 'buildbot'
393-
except (KeyError, EnvironmentError) as err:
394-
warnings.warn(f'getpass.getuser() failed {err}.', RuntimeWarning)
395-
isbuildbot = False
396-
return unittest.skipIf(isbuildbot, reason)
397-
398387
def check_sanitizer(*, address=False, memory=False, ub=False):
399388
"""Returns True if Python is compiled with sanitizer support"""
400389
if not (address or memory or ub):

Lib/test/test_tools/test_freeze.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
@support.requires_zlib()
1616
@unittest.skipIf(sys.platform.startswith('win'), 'not supported on Windows')
17-
@support.skip_if_buildbot('not all buildbots have enough space')
1817
# gh-103053: Skip test if Python is built with Profile Guided Optimization
1918
# (PGO), since the test is just too slow in this case.
2019
@unittest.skipIf(support.check_cflags_pgo(),

0 commit comments

Comments
 (0)