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(),