]> granicus.if.org Git - python/commitdiff
Use bytes as return type from recv_bytes() methods. Not sure why this only
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 25 Aug 2008 03:03:25 +0000 (03:03 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 25 Aug 2008 03:03:25 +0000 (03:03 +0000)
affects some buildbots.

R=Brett
TESTED=./python -E -tt ./Lib/test/regrtest.py test_multiprocessing

Lib/test/test_multiprocessing.py

index d64c5619e6b390901a6f0ffbd5b37d3b0f25ffbf..214a420708bc35b20c735e6ea42111d43ed6615f 100644 (file)
@@ -1741,7 +1741,7 @@ class OtherTest(unittest.TestCase):
     def test_deliver_challenge_auth_failure(self):
         class _FakeConnection(object):
             def recv_bytes(self, size):
-                return 'something bogus'
+                return b'something bogus'
             def send_bytes(self, data):
                 pass
         self.assertRaises(multiprocessing.AuthenticationError,
@@ -1757,8 +1757,8 @@ class OtherTest(unittest.TestCase):
                 if self.count == 1:
                     return multiprocessing.connection.CHALLENGE
                 elif self.count == 2:
-                    return 'something bogus'
-                return ''
+                    return b'something bogus'
+                return b''
             def send_bytes(self, data):
                 pass
         self.assertRaises(multiprocessing.AuthenticationError,