diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-08-25 03:03:25 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-08-25 03:03:25 (GMT) |
commit | 2a7767a17311cada06240a187c8896bdbcc1a4d0 (patch) | |
tree | 464e3b83ef563299b80ccca203d06ac8430d84c4 | |
parent | 0c519b3a5e847eea0dffb51ac8df7c68891daf70 (diff) | |
download | cpython-2a7767a17311cada06240a187c8896bdbcc1a4d0.zip cpython-2a7767a17311cada06240a187c8896bdbcc1a4d0.tar.gz cpython-2a7767a17311cada06240a187c8896bdbcc1a4d0.tar.bz2 |
Use bytes as return type from recv_bytes() methods. Not sure why this only
affects some buildbots.
R=Brett
TESTED=./python -E -tt ./Lib/test/regrtest.py test_multiprocessing
-rw-r--r-- | Lib/test/test_multiprocessing.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py index d64c561..214a420 100644 --- a/Lib/test/test_multiprocessing.py +++ b/Lib/test/test_multiprocessing.py @@ -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, |