]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-91752: Skip test_freeze_simple_script when zlib is not available (#91758)
authorAbhigyan Bose <abhigyandeepbose@gmail.com>
Tue, 3 May 2022 17:19:54 +0000 (22:49 +0530)
committerGitHub <noreply@github.com>
Tue, 3 May 2022 17:19:54 +0000 (10:19 -0700)
Fixes GH-91752.

Lib/test/test_tools/test_freeze.py
Misc/NEWS.d/next/Tests/2022-04-22-19-00-00.gh-issue-91752.Ji27dd.rst [new file with mode: 0644]

index cca3c47f5ac05b796b34ffc8d204e29049d0a4d6..2ba36ca208f96733fd4ea597d5d895daf0ab2fdd 100644 (file)
@@ -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 (file)
index 0000000..c02c1f4
--- /dev/null
@@ -0,0 +1 @@
+Added @requires_zlib to test.test_tools.test_freeze.TestFreeze.