use binary mode when reading files for testAsyncore to make Windows happy

This commit is contained in:
Bill Janssen 2007-09-16 23:16:46 +00:00
parent 296a59d3be
commit bf10c47389
1 changed files with 1 additions and 1 deletions

View File

@ -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' % (