From 4fab68341b9231a95c7d6f361749bcb4dde84620 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 6 Oct 2023 03:09:54 +0200 Subject: [PATCH] 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 13d9205f4057eeeef80a25d410ad123876dc60cd. --- Lib/test/support/__init__.py | 11 ----------- Lib/test/test_tools/test_freeze.py | 1 - 2 files changed, 12 deletions(-) diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 982d0df3b86f48..2d985d011fcc2b 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -384,17 +384,6 @@ def wrapper(*args, **kw): return decorator -def skip_if_buildbot(reason=None): - """Decorator raising SkipTest if running on a buildbot.""" - if not reason: - reason = 'not suitable for buildbots' - try: - isbuildbot = getpass.getuser().lower() == 'buildbot' - except (KeyError, EnvironmentError) as err: - warnings.warn(f'getpass.getuser() failed {err}.', RuntimeWarning) - isbuildbot = False - return unittest.skipIf(isbuildbot, reason) - def check_sanitizer(*, address=False, memory=False, ub=False): """Returns True if Python is compiled with sanitizer support""" if not (address or memory or ub): diff --git a/Lib/test/test_tools/test_freeze.py b/Lib/test/test_tools/test_freeze.py index 671ec2961e7f8f..780179170cb62b 100644 --- a/Lib/test/test_tools/test_freeze.py +++ b/Lib/test/test_tools/test_freeze.py @@ -14,7 +14,6 @@ @support.requires_zlib() @unittest.skipIf(sys.platform.startswith('win'), 'not supported on Windows') -@support.skip_if_buildbot('not all buildbots have enough space') # gh-103053: Skip test if Python is built with Profile Guided Optimization # (PGO), since the test is just too slow in this case. @unittest.skipIf(support.check_cflags_pgo(),