diff options
author | Georg Brandl <georg@python.org> | 2005-08-26 08:34:00 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-08-26 08:34:00 (GMT) |
commit | d2e3ba7a3595bfa4342ab30b5228d8d94d6c6a08 (patch) | |
tree | a2de338e899e726ce48edbd821e1fa8245897ecc /Lib/test/test_socket.py | |
parent | 4550b8db567d08d8b8c6e6fd941b9a32369c0553 (diff) | |
download | cpython-d2e3ba7a3595bfa4342ab30b5228d8d94d6c6a08.zip cpython-d2e3ba7a3595bfa4342ab30b5228d8d94d6c6a08.tar.gz cpython-d2e3ba7a3595bfa4342ab30b5228d8d94d6c6a08.tar.bz2 |
patch [ 756021 ] Allow socket.inet_aton("255.255.255.255") on Windows
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r-- | Lib/test/test_socket.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 31ac892..1899e78 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -380,10 +380,12 @@ class GeneralModuleTests(unittest.TestCase): self.assertEquals('\xff\x00\xff\x00', f('255.0.255.0')) self.assertEquals('\xaa\xaa\xaa\xaa', f('170.170.170.170')) self.assertEquals('\x01\x02\x03\x04', f('1.2.3.4')) + self.assertEquals('\xff\xff\xff\xff', f('255.255.255.255')) self.assertEquals('\x00\x00\x00\x00', g('0.0.0.0')) self.assertEquals('\xff\x00\xff\x00', g('255.0.255.0')) self.assertEquals('\xaa\xaa\xaa\xaa', g('170.170.170.170')) + self.assertEquals('\xff\xff\xff\xff', g('255.255.255.255')) def testIPv6toString(self): if not hasattr(socket, 'inet_pton'): |