From bf10c47389d13b97e75855b262e077bfa688968c Mon Sep 17 00:00:00 2001 From: Bill Janssen Date: Sun, 16 Sep 2007 23:16:46 +0000 Subject: [PATCH] use binary mode when reading files for testAsyncore to make Windows happy --- Lib/test/test_ssl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' % ( -- 2.50.0