summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-15 03:56:40 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-15 03:56:40 (GMT)
commit32c4ac014387d3bffea5461339b8ad3044d0dafb (patch)
tree38bb0224dd274eaada1bbbd687cf709b08b79a23 /Lib/test
parent13c3e380d1ff807b1a18934ac9aace037c66f2ac (diff)
downloadcpython-32c4ac014387d3bffea5461339b8ad3044d0dafb.zip
cpython-32c4ac014387d3bffea5461339b8ad3044d0dafb.tar.gz
cpython-32c4ac014387d3bffea5461339b8ad3044d0dafb.tar.bz2
Down with str8!
Change various socket APIs to use bytes or str instead str8.
Diffstat (limited to 'Lib/test')
-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 a8b65c4..6a12952 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -1043,7 +1043,7 @@ class TestLinuxAbstractNamespace(unittest.TestCase):
UNIX_PATH_MAX = 108
def testLinuxAbstractNamespace(self):
- address = "\x00python-test-hello\x00\xff"
+ address = b"\x00python-test-hello\x00\xff"
s1 = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
s1.bind(address)
s1.listen(1)
@@ -1054,7 +1054,7 @@ class TestLinuxAbstractNamespace(unittest.TestCase):
self.assertEqual(s2.getpeername(), address)
def testMaxName(self):
- address = "\x00" + "h" * (self.UNIX_PATH_MAX - 1)
+ address = b"\x00" + b"h" * (self.UNIX_PATH_MAX - 1)
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
s.bind(address)
self.assertEqual(s.getsockname(), address)