[Python-checkins] GH-91752: Skip test_freeze_simple_script when zlib is not available (#91758)
gvanrossum
webhook-mailer at python.org
Tue May 3 13:20:02 EDT 2022
https://github.com/python/cpython/commit/77e7a04cd235f1bcd6fc69bcb15e2683c365d637
commit: 77e7a04cd235f1bcd6fc69bcb15e2683c365d637
branch: main
author: Abhigyan Bose <abhigyandeepbose at gmail.com>
committer: gvanrossum <gvanrossum at gmail.com>
date: 2022-05-03T10:19:54-07:00
summary:
GH-91752: Skip test_freeze_simple_script when zlib is not available (#91758)
Fixes GH-91752.
files:
A Misc/NEWS.d/next/Tests/2022-04-22-19-00-00.gh-issue-91752.Ji27dd.rst
M Lib/test/test_tools/test_freeze.py
diff --git a/Lib/test/test_tools/test_freeze.py b/Lib/test/test_tools/test_freeze.py
index cca3c47f5ac05..2ba36ca208f96 100644
--- a/Lib/test/test_tools/test_freeze.py
+++ b/Lib/test/test_tools/test_freeze.py
@@ -12,7 +12,7 @@
with imports_under_tool('freeze', 'test'):
import freeze as helper
-
+ at 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 0000000000000..c02c1f491cc3e
--- /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.
More information about the Python-checkins
mailing list