diff --git a/Lib/test/test_tools/test_freeze.py b/Lib/test/test_tools/test_freeze.py index 2ba36ca208f967..8960d05edb1923 100644 --- a/Lib/test/test_tools/test_freeze.py +++ b/Lib/test/test_tools/test_freeze.py @@ -12,6 +12,13 @@ with imports_under_tool('freeze', 'test'): import freeze as helper +# See gh-103053: +skip_on_s390x_pgo = unittest.skipIf( + support.PGO and hasattr(os, 'uname') and os.uname().machine == 's390x', + 's390x with PGO takes too long', +) + +@skip_on_s390x_pgo @support.requires_zlib() @unittest.skipIf(sys.platform.startswith('win'), 'not supported on Windows') @support.skip_if_buildbot('not all buildbots have enough space')