mirror of https://github.com/python/cpython.git
use binary mode when reading files for testAsyncore to make Windows happy
This commit is contained in:
parent
296a59d3be
commit
bf10c47389
|
@ -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' % (
|
||||
|
|
Loading…
Reference in New Issue