gh-126349: Add context managers to turtle for fill, poly and no_animation#126350
gh-126349: Add context managers to turtle for fill, poly and no_animation#126350erlend-aasland merged 30 commits intopython:mainfrom
fill, poly and no_animation#126350Conversation
Co-authored-by: Marie Roald <[email protected]>
Co-authored-by: Yngve Mardal Moe <[email protected]>
Co-authored-by: Yngve Mardal Moe <[email protected]>
Co-authored-by: Marie Roald <[email protected]>
Co-authored-by: Marie Roald <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Yngve Mardal Moe <[email protected]>
|
LGTM |
Eclips4
left a comment
There was a problem hiding this comment.
Could you please add a note about these additions to the Doc/whatsnew/3.14.rst?
Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Daniel Hollas <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Daniel Hollas <[email protected]>
|
We have tried to address the review comments now 🙂 |
picnixz
left a comment
There was a problem hiding this comment.
Some final minor nitpicks. Otherwise looks great!
Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Marie Roald <[email protected]>
Co-authored-by: Marie Roald <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
|
(Conflict resolved.) @erlend-aasland Any more comments or good to merge? |
fill, poly and no_animationfill, poly and no_animation
Co-authored-by: Yngve Mardal Moe <[email protected]>
graingert
left a comment
There was a problem hiding this comment.
the mock.patch context manager handling in the tests could be improved
Co-authored-by: Yngve Mardal Moe <[email protected]>
Co-authored-by: Yngve Mardal Moe <[email protected]>
|
We've addressed the review comments now 🙂 |
erlend-aasland
left a comment
There was a problem hiding this comment.
Thanks, everyone! :)
|
This change introduced a reference leak in test_turtle: cc @encukou |
|
I suspect that the regression comes from the new |
|
I believe we found a fix. If we add the following teardown method to def tearDown(self):
turtle.Turtle._screen = None
return super().tearDown()then @vstinner's command gives this output instead: We're not sure how the workflow is for fixing regressions that we introduced. Should we make a new PR that starts with |
Yes please, because we've only just merged this PR, the fix can go under the same issue. |
|
We'll submit a PR when we're off work today then :) |
…ers to turtle (python#126350) Co-authored-by: Marie Roald <[email protected]> Co-authored-by: Yngve Mardal Moe <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Daniel Hollas <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
Adds
fill(),poly()andno_animation()context managers to turtle.py.Co-authored-by: Yngve Mardal Moe [email protected]
fill,polyandtracer#126349📚 Documentation preview 📚: https://cpython-previews--126350.org.readthedocs.build/en/126350/library/turtle.html