diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 5f6d6a408f04..7e78b4c9cff4 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -803,7 +803,7 @@ def testAsyncore(self): try: if test_support.verbose: sys.stdout.write('\n') - d1 = open(CERTFILE, 'r').read() + d1 = open(CERTFILE, 'rb').read() d2 = '' # now fetch the same data from the HTTPS server url = 'https://127.0.0.1:%d/%s' % (