mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
gh-116303: Skip tests if C recursion limit is unavailable (GH-117368)
The test suite fetches the C recursion limit from the _testcapi extension module. Test extension modules can be disabled using the --disable-test-modules configure option.
This commit is contained in:
parent
9a12f5d1c1
commit
ca62ffd1a5
14 changed files with 32 additions and 35 deletions
|
@ -118,7 +118,7 @@ class CodeTestCase(unittest.TestCase):
|
|||
def test_many_codeobjects(self):
|
||||
# Issue2957: bad recursion count on code objects
|
||||
# more than MAX_MARSHAL_STACK_DEPTH
|
||||
count = support.EXCEEDS_RECURSION_LIMIT
|
||||
count = support.exceeds_recursion_limit()
|
||||
codes = (ExceptionTestCase.test_exceptions.__code__,) * count
|
||||
marshal.loads(marshal.dumps(codes))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue