Skip to content

[2.7] Fix DeprecationWarning in test_bytes#10805

Merged
vstinner merged 1 commit into
python:2.7from
vstinner:test_bytes27
Nov 30, 2018
Merged

[2.7] Fix DeprecationWarning in test_bytes#10805
vstinner merged 1 commit into
python:2.7from
vstinner:test_bytes27

Conversation

@vstinner

Copy link
Copy Markdown
Member

Running test_bytes with python -3 -Wd emits two DeprecationWarning on
"1/0". Use "1//0" to prevent the warning.

Running test_bytes with python -3 -Wd emits two DeprecationWarning on
"1/0". Use "1//0" to prevent the warning.

@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.

Or 1.0/0.0.

@vstinner vstinner merged commit d7a880c into python:2.7 Nov 30, 2018
@vstinner vstinner deleted the test_bytes27 branch November 30, 2018 10:04
@vstinner

Copy link
Copy Markdown
Member Author

Well, 1.0/0.0, 1//0 or raise ZeroDivisionError are all the same. I chose 1//0 ;-)

@vstinner

Copy link
Copy Markdown
Member Author

Follow-up: PR #10833.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip issue skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants