-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-107263: Increase C stack limit for most functions, except _PyEval_EvalFrameDefault()
#107535
Changes from all commits
18f16d3
8d05620
aa78add
d6793ea
c0af892
534a36c
3bb0cf0
a8c72d0
7e6a521
0e8c992
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
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 @@ | |
# 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') | ||
|
||
Comment on lines
-47
to
-50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For reference: this moved |
||
# condition. | ||
|
||
class VersionTestCase(unittest.TestCase): | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Increase C recursion limit for functions other than the main interpreter | ||
from 800 to 1500. This should allow functions like ``list.__repr__`` and | ||
``json.dumps`` to handle all the inputs that they could prior to 3.12 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the WASI conditional will have to be duplicated in test.support as well, for the WASI ast recursion test (https://buildbot.python.org/all/#/builders/1061/builds/526).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already skip a few tests for WASI due to the limited stack use, so I'll just add another skip.
We can remove all of those for 3.13.