]> granicus.if.org Git - python/commitdiff
use binary mode when reading files for testAsyncore to make Windows happy
authorBill Janssen <janssen@parc.com>
Sun, 16 Sep 2007 23:16:46 +0000 (23:16 +0000)
committerBill Janssen <janssen@parc.com>
Sun, 16 Sep 2007 23:16:46 +0000 (23:16 +0000)
Lib/test/test_ssl.py

index 5f6d6a408f04ef0f560c655d027d7cab81eada39..7e78b4c9cff4f02888aecf2ad3d7d77a603f77cb 100644 (file)
@@ -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' % (