From: Abhigyan Bose Date: Tue, 3 May 2022 17:19:54 +0000 (+0530) Subject: GH-91752: Skip test_freeze_simple_script when zlib is not available (#91758) X-Git-Tag: v3.11.0b1~87 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77e7a04cd235f1bcd6fc69bcb15e2683c365d637;p=thirdparty%2FPython%2Fcpython.git GH-91752: Skip test_freeze_simple_script when zlib is not available (#91758) Fixes GH-91752. --- diff --git a/Lib/test/test_tools/test_freeze.py b/Lib/test/test_tools/test_freeze.py index cca3c47f5ac0..2ba36ca208f9 100644 --- a/Lib/test/test_tools/test_freeze.py +++ b/Lib/test/test_tools/test_freeze.py @@ -12,7 +12,7 @@ skip_if_missing('freeze') with imports_under_tool('freeze', 'test'): import freeze as helper - +@support.requires_zlib() @unittest.skipIf(sys.platform.startswith('win'), 'not supported on Windows') @support.skip_if_buildbot('not all buildbots have enough space') class TestFreeze(unittest.TestCase): diff --git a/Misc/NEWS.d/next/Tests/2022-04-22-19-00-00.gh-issue-91752.Ji27dd.rst b/Misc/NEWS.d/next/Tests/2022-04-22-19-00-00.gh-issue-91752.Ji27dd.rst new file mode 100644 index 000000000000..c02c1f491cc3 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2022-04-22-19-00-00.gh-issue-91752.Ji27dd.rst @@ -0,0 +1 @@ +Added @requires_zlib to test.test_tools.test_freeze.TestFreeze.