Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-126399 add test of turtle module's RawTurtle.clone() #127189

Closed

Conversation

Chaebin-Kim24
Copy link

@Chaebin-Kim24 Chaebin-Kim24 commented Nov 23, 2024

The corresponding issue proposes a modification on turtle module's RawTurtle.clone() function.

Specifically, items of cloned RawTurtle object to have its own currentLineItem, and not the currentLineItem of the original.

This test checks the items of cloned RawTurtle to meet the proposal.

The test is expected to fail without #126401 and pass with it.

The test is skipped when Tk/Tcl is not supported.

test_turtle.TestRawTurtle.test_clone(self):
    assert the last item in the items list of the cloned turtle is correct.
        more specifically, the item should be the same as the currentLineItem of the cloned turtle. 
    also, the currentLineItem of the original turtle should not be in the items list of the cloned turtle.

test_turtle.TestRawTurtle.setUp(self):
    skip test if the RawTurtle cannot be initialized because tk/tcl is not supported
edited spacings
@bedevere-app
Copy link

bedevere-app bot commented Nov 23, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@hugovk
Copy link
Member

hugovk commented Nov 23, 2024

The test is expected to fail without #126401 and pass with it.

Thanks, but this test is also part of that PR, so we don't need this separate PR with just a failing test. Let's close this one and continue in #126401.

@hugovk hugovk closed this Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants