Skip to content

bpo-11192: Fix test_socket.py for AIX#8954

Merged
ncoghlan merged 5 commits intopython:masterfrom
aixtools:bpo-11192
Dec 26, 2018
Merged

bpo-11192: Fix test_socket.py for AIX#8954
ncoghlan merged 5 commits intopython:masterfrom
aixtools:bpo-11192

Conversation

@aixtools
Copy link
Copy Markdown
Contributor

@aixtools aixtools commented Aug 27, 2018

Add "SkipIf" statements for unsupported features
Use run-time platform.system() to establish active platform rather than build-time sys.platform()

https://bugs.python.org/issue11192

Comment thread Lib/test/test_socket.py Outdated
assertInvalid('1:2:3:4:5:6:7:8:0')
# bpo-29972: inet_pton() doesn't fail on AIX
if not sys.platform.startswith('aix'):
if AIX:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Must be ìf not AIX?

Copy link
Copy Markdown
Contributor Author

@aixtools aixtools Sep 11, 2018

Choose a reason for hiding this comment

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

you are right, blind in one eye. But AIX does now report "Invalid" for assertInvalid('1:2:3:4:5:6:'), so I'll move that, and change the other test back, behind "not AIX".

@ncoghlan ncoghlan merged commit 5661459 into python:master Dec 26, 2018
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.

5 participants