Skip to content

Comments

Add regression test for recursionindex with equal code objects#14219

Open
ieharo1 wants to merge 1 commit intopytest-dev:mainfrom
ieharo1:test/recursionindex-equal-code
Open

Add regression test for recursionindex with equal code objects#14219
ieharo1 wants to merge 1 commit intopytest-dev:mainfrom
ieharo1:test/recursionindex-equal-code

Conversation

@ieharo1
Copy link

@ieharo1 ieharo1 commented Feb 19, 2026

Summary

  • Added a regression test to ensure Traceback.recursionindex() does not flag
    recursion when frames share equal-but-distinct code objects.

Why

Certain tools can generate code objects that compare equal by value even when
they are different objects. This test prevents false recursion detection in
those cases.

Tests

  • Not run (local environment).

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.

1 participant