summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhigyan Bose <abhigyandeepbose@gmail.com>2022-05-03 17:19:54 (GMT)
committerGitHub <noreply@github.com>2022-05-03 17:19:54 (GMT)
commit77e7a04cd235f1bcd6fc69bcb15e2683c365d637 (patch)
tree5970a2f09c705b02f044e778dbeecdf12810a355
parent20490d5018cff4c604b37142323c531f8512b9aa (diff)
downloadcpython-77e7a04cd235f1bcd6fc69bcb15e2683c365d637.zip
cpython-77e7a04cd235f1bcd6fc69bcb15e2683c365d637.tar.gz
cpython-77e7a04cd235f1bcd6fc69bcb15e2683c365d637.tar.bz2
GH-91752: Skip test_freeze_simple_script when zlib is not available (#91758)
Fixes GH-91752.
-rw-r--r--Lib/test/test_tools/test_freeze.py2
-rw-r--r--Misc/NEWS.d/next/Tests/2022-04-22-19-00-00.gh-issue-91752.Ji27dd.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_tools/test_freeze.py b/Lib/test/test_tools/test_freeze.py
index cca3c47..2ba36ca 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 0000000..c02c1f4
--- /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.