Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Lib/test/test_free_threading/test_races.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ def mutate():
do_race(set_value, mutate)

def test_racing_recursion_limit(self):
self.addCleanup(sys.setrecursionlimit, sys.getrecursionlimit())

def something_recursive():
def count(n):
if n > 0:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Restore the recursion limit after the free-threading recursion-limit race test

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Test only changes don't requires a news entry file, please remove it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

'Tests' is one of the blurb options, for test-only PRs, and this was put in the Tests section.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

to avoid failures in subsequent tests run in the same process.
Loading