summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-07-10 07:29:12 (GMT)
committerGuido van Rossum <guido@python.org>2007-07-10 07:29:12 (GMT)
commit6718062538e642d62c626fd033f2c3a2356c5505 (patch)
tree90d9ed46276e5199bab53e2082cbfee550359517 /Lib/test/test_socket.py
parent7165cb1a485b1b5574785eac6e2edc8787e43c38 (diff)
downloadcpython-6718062538e642d62c626fd033f2c3a2356c5505.zip
cpython-6718062538e642d62c626fd033f2c3a2356c5505.tar.gz
cpython-6718062538e642d62c626fd033f2c3a2356c5505.tar.bz2
Fix test_socket.py. Simple str/bytes issue with IPV6 addresse.
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 8ba2ceb..f2b74ee 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -423,7 +423,7 @@ class GeneralModuleTests(unittest.TestCase):
self.assertEquals('\x00' * 16, f('0::0'))
self.assertEquals('\x00\x01' + '\x00' * 14, f('1::'))
self.assertEquals(
- '\x45\xef\x76\xcb\x00\x1a\x56\xef\xaf\xeb\x0b\xac\x19\x24\xae\xae',
+ b'\x45\xef\x76\xcb\x00\x1a\x56\xef\xaf\xeb\x0b\xac\x19\x24\xae\xae',
f('45ef:76cb:1a:56ef:afeb:bac:1924:aeae')
)
@@ -457,7 +457,7 @@ class GeneralModuleTests(unittest.TestCase):
self.assertEquals('::1', f('\x00' * 15 + '\x01'))
self.assertEquals(
'aef:b01:506:1001:ffff:9997:55:170',
- f('\x0a\xef\x0b\x01\x05\x06\x10\x01\xff\xff\x99\x97\x00\x55\x01\x70')
+ f(b'\x0a\xef\x0b\x01\x05\x06\x10\x01\xff\xff\x99\x97\x00\x55\x01\x70')
)
# XXX The following don't test module-level functionality...