From: Bill Janssen Date: Sun, 16 Sep 2007 23:16:46 +0000 (+0000) Subject: use binary mode when reading files for testAsyncore to make Windows happy X-Git-Tag: v2.6a1~1283 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf10c47389d13b97e75855b262e077bfa688968c;p=python use binary mode when reading files for testAsyncore to make Windows happy --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 5f6d6a408f..7e78b4c9cf 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -803,7 +803,7 @@ else: 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' % (