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
This commit is contained in:
parent
0c519b3a5e
commit
2a7767a173
|
@ -1741,7 +1741,7 @@ class OtherTest(unittest.TestCase):
|
||||||
def test_deliver_challenge_auth_failure(self):
|
def test_deliver_challenge_auth_failure(self):
|
||||||
class _FakeConnection(object):
|
class _FakeConnection(object):
|
||||||
def recv_bytes(self, size):
|
def recv_bytes(self, size):
|
||||||
return 'something bogus'
|
return b'something bogus'
|
||||||
def send_bytes(self, data):
|
def send_bytes(self, data):
|
||||||
pass
|
pass
|
||||||
self.assertRaises(multiprocessing.AuthenticationError,
|
self.assertRaises(multiprocessing.AuthenticationError,
|
||||||
|
@ -1757,8 +1757,8 @@ class OtherTest(unittest.TestCase):
|
||||||
if self.count == 1:
|
if self.count == 1:
|
||||||
return multiprocessing.connection.CHALLENGE
|
return multiprocessing.connection.CHALLENGE
|
||||||
elif self.count == 2:
|
elif self.count == 2:
|
||||||
return 'something bogus'
|
return b'something bogus'
|
||||||
return ''
|
return b''
|
||||||
def send_bytes(self, data):
|
def send_bytes(self, data):
|
||||||
pass
|
pass
|
||||||
self.assertRaises(multiprocessing.AuthenticationError,
|
self.assertRaises(multiprocessing.AuthenticationError,
|
||||||
|
|
Loading…
Reference in New Issue