Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-145492: Fix test_repr_recursive_factory reproducer#145761

Open
mvanhorn wants to merge 1 commit intopython:mainfrom
mvanhorn:fix/145492-test-repr-reproducer
Open

gh-145492: Fix test_repr_recursive_factory reproducer#145761
mvanhorn wants to merge 1 commit intopython:mainfrom
mvanhorn:fix/145492-test-repr-reproducer

Conversation

@mvanhorn
Copy link
Contributor

The test'sProblematicFactory.__repr__ calledrepr(dd) but discarded the result, returning a fixed string instead. This didn't properly exercise the infinite recursion path from the original issue whererepr(dd) is embedded in the return value.

Changed toreturn f"ProblematicFactory for {repr(dd)}" to match the original reproducer fromgh-145492.

Happy to close this if@KowalskiThomas wants to submit the fix-up instead.

The test's ProblematicFactory.__repr__ called repr(dd) but discarded theresult, returning a fixed string instead. This didn't properly exercisethe infinite recursion path from the original issue where repr(dd) isembedded in the return value.Use `return f"ProblematicFactory for {repr(dd)}"` to match the originalreproducer frompythongh-145492.Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

awaiting reviewskip newstestsTests in the Lib/test dir

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@mvanhorn@StanFromIreland

[8]ページ先頭

©2009-2026 Movatter.jp