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 <roald.marie@gmail.com>
Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com>
Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com>
Co-authored-by: Marie Roald <roald.marie@gmail.com>
Co-authored-by: Marie Roald <roald.marie@gmail.com>
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com>
|
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 <1324225+hugovk@users.noreply.github.com> Co-authored-by: Daniel Hollas <danekhollas@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Daniel Hollas <danekhollas@gmail.com>
|
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 <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Marie Roald <roald.marie@gmail.com>
Co-authored-by: Marie Roald <roald.marie@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
|
(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 <yngve.m.moe@gmail.com>
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 <yngve.m.moe@gmail.com>
Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com>
|
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 <roald.marie@gmail.com> Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Daniel Hollas <danekhollas@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
Adds
fill(),poly()andno_animation()context managers to turtle.py.Co-authored-by: Yngve Mardal Moe 3531982+yngvem@users.noreply.github.com
fill,polyandtracer#126349📚 Documentation preview 📚: https://cpython-previews--126350.org.readthedocs.build/en/126350/library/turtle.html