This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Michael.Felt
Recipients David.Edelsohn, Michael.Felt, alef, delhallt, giampaolo.rodola, sable
Date 2018-08-23.15:05:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535036723.71.0.56676864532.issue11192@psf.upfronthosting.co.za>
In-reply-to
Content
I nearly have a patch - to resolve all the remaining test_socket() issues with AIX. However, this (new?) issue remains:

        f = lambda a: inet_pton(AF_INET6, a)
        assertInvalid = lambda a: self.assertRaises(
            (OSError, ValueError), f, a
        )

>>> f('1:2:3:4:5:6:7:8')
b'\x00\x01\x00\x02\x00\x03\x00\x04\x00\x05\x00\x06\x00\x07\x00\x08'
>>> f('1:2:3:4:5:6:7:8:')
b'\x00\x01\x00\x02\x00\x03\x00\x04\x00\x05\x00\x06\x00\x07\x00\x08'
>>> f('1::')
b'\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
>>> f('1:2:3:4:5:6:7:8::')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in <lambda>
OSError: illegal IP address string passed to inet_pton

>>> f('1:2:3:4:5:6:7')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in <lambda>
OSError: illegal IP address string passed to inet_pton


Is, maybe, the last test meant to be '::' on the end, rather than ':'?
History
Date User Action Args
2018-08-23 15:05:23Michael.Feltsetrecipients: + Michael.Felt, sable, giampaolo.rodola, alef, David.Edelsohn, delhallt
2018-08-23 15:05:23Michael.Feltsetmessageid: <1535036723.71.0.56676864532.issue11192@psf.upfronthosting.co.za>
2018-08-23 15:05:23Michael.Feltlinkissue11192 messages
2018-08-23 15:05:23Michael.Feltcreate