Skip to content

[3.12] gh-108851: Fix tomllib recursion tests (GH-108853) #109012

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

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Sep 6, 2023

  • Add get_recursion_available() and get_recursion_depth() functions
    to the test.support module.
  • Change infinite_recursion() default max_depth from 75 to 100.
  • Fix test_tomllib recursion tests for WASI buildbots: reduce the
    recursion limit and compute the maximum nested array/dict depending
    on the current available recursion limit.
  • test.pythoninfo logs sys.getrecursionlimit().
  • Enhance test_sys tests on sys.getrecursionlimit()
    and sys.setrecursionlimit().
    (cherry picked from commit 8ff1142)

Co-authored-by: Victor Stinner [email protected]

* Add get_recursion_available() and get_recursion_depth() functions
  to the test.support module.
* Change infinite_recursion() default max_depth from 75 to 100.
* Fix test_tomllib recursion tests for WASI buildbots: reduce the
  recursion limit and compute the maximum nested array/dict depending
  on the current available recursion limit.
* test.pythoninfo logs sys.getrecursionlimit().
* Enhance test_sys tests on sys.getrecursionlimit()
  and sys.setrecursionlimit().
(cherry picked from commit 8ff1142)

Co-authored-by: Victor Stinner <[email protected]>
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, good bot.

@Yhg1s Yhg1s merged commit 55d7e8f into python:3.12 Sep 8, 2023
@miss-islington miss-islington deleted the backport-8ff1142-3.12 branch September 8, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants