[Python-checkins] r58173 - python/trunk/Lib/test/test_ssl.py
bill.janssen
python-checkins at python.org
Mon Sep 17 01:16:46 CEST 2007
Author: bill.janssen
Date: Mon Sep 17 01:16:46 2007
New Revision: 58173
Modified:
python/trunk/Lib/test/test_ssl.py
Log:
use binary mode when reading files for testAsyncore to make Windows happy
Modified: python/trunk/Lib/test/test_ssl.py
==============================================================================
--- python/trunk/Lib/test/test_ssl.py (original)
+++ python/trunk/Lib/test/test_ssl.py Mon Sep 17 01:16:46 2007
@@ -803,7 +803,7 @@
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' % (
More information about the Python-checkins
mailing list