summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zlib.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-08-04 09:10:29 (GMT)
committerGitHub <noreply@github.com>2023-08-04 09:10:29 (GMT)
commitfa45958450aa3489607daf9855ca0474a2a20878 (patch)
tree0e7a9b21503a7cf08691b99990ee6a538aa931b5 /Lib/test/test_zlib.py
parent0bd784b355edf0d1911a7830db5d41c84171e367 (diff)
downloadcpython-fa45958450aa3489607daf9855ca0474a2a20878.zip
cpython-fa45958450aa3489607daf9855ca0474a2a20878.tar.gz
cpython-fa45958450aa3489607daf9855ca0474a2a20878.tar.bz2
GH-107263: Increase C stack limit for most functions, except `_PyEval_EvalFrameDefault()` (GH-107535)
* Set C recursion limit to 1500, set cost of eval loop to 2 frames, and compiler mutliply to 2.
Diffstat (limited to 'Lib/test/test_zlib.py')
-rw-r--r--Lib/test/test_zlib.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py
index 3dac70e..2113757 100644
--- a/Lib/test/test_zlib.py
+++ b/Lib/test/test_zlib.py
@@ -7,7 +7,7 @@ import os
import pickle
import random
import sys
-from test.support import bigmemtest, _1G, _4G
+from test.support import bigmemtest, _1G, _4G, skip_on_s390x
zlib = import_helper.import_module('zlib')
@@ -44,10 +44,7 @@ requires_Decompress_copy = unittest.skipUnless(
# zlib.decompress(func1(data)) == zlib.decompress(func2(data)) == data
#
# Make the assumption that s390x always has an accelerator to simplify the skip
-# condition. Windows doesn't have os.uname() but it doesn't support s390x.
-skip_on_s390x = unittest.skipIf(hasattr(os, 'uname') and os.uname().machine == 's390x',
- 'skipped on s390x')
-
+# condition.
class VersionTestCase(unittest.TestCase):