Skip to content

Conversation

loganasherjones
Copy link
Contributor

@loganasherjones loganasherjones commented Jul 25, 2021

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

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
Contributor Author

Thanks for the review @serhiy-storchaka

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

@serhiy-storchaka serhiy-storchaka added needs backport to 3.9 only security fixes needs backport to 3.10 only security fixes labels Jul 25, 2021
@ambv ambv merged commit 3f135c0 into python:main Jul 26, 2021
@miss-islington
Copy link
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

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

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

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Jul 26, 2021
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 <[email protected]>
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 <[email protected]>
@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 <[email protected]>
ambv pushed a commit that referenced this pull request Jul 26, 2021
(cherry picked from commit 3f135c0)

Co-authored-by: Logan Jones <[email protected]>
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