Skip to content

bpo-44734: Fix precision in turtle tests#27343

Merged
ambv merged 1 commit into
python:mainfrom
loganasherjones:issue-44734
Jul 26, 2021
Merged

bpo-44734: Fix precision in turtle tests#27343
ambv merged 1 commit into
python:mainfrom
loganasherjones:issue-44734

Conversation

@loganasherjones

@loganasherjones loganasherjones commented Jul 25, 2021

Copy link
Copy Markdown
Contributor

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we are here, I suggest to inline values of vec and expected variables and remove empty lines between asserts in this method. The body of test_distance will reduce from 11 lines to 3 lines, that is more readable, and the traceback will contain more useful information.

@loganasherjones

Copy link
Copy Markdown
Contributor Author

Thanks for the review @serhiy-storchaka

I made the changes you requested. Let me know if there's anything else!

Comment thread Lib/test/test_turtle.py Outdated
@ambv ambv merged commit 3f135c0 into python:main Jul 26, 2021
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @loganasherjones for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.9.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-27361 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jul 26, 2021
@bedevere-bot

Copy link
Copy Markdown

GH-27362 is a backport of this pull request to the 3.9 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 26, 2021
(cherry picked from commit 3f135c0)

Co-authored-by: Logan Jones <loganasherjones@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 26, 2021
(cherry picked from commit 3f135c0)

Co-authored-by: Logan Jones <loganasherjones@gmail.com>
@loganasherjones loganasherjones deleted the issue-44734 branch July 26, 2021 15:40
ambv pushed a commit that referenced this pull request Jul 26, 2021
(cherry picked from commit 3f135c0)

Co-authored-by: Logan Jones <loganasherjones@gmail.com>
ambv pushed a commit that referenced this pull request Jul 26, 2021
(cherry picked from commit 3f135c0)

Co-authored-by: Logan Jones <loganasherjones@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants