mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
use binary mode when reading files for testAsyncore to make Windows happy
This commit is contained in:
parent
296a59d3be
commit
bf10c47389
1 changed files with 1 additions and 1 deletions
|
@ -803,7 +803,7 @@ else:
|
||||||
try:
|
try:
|
||||||
if test_support.verbose:
|
if test_support.verbose:
|
||||||
sys.stdout.write('\n')
|
sys.stdout.write('\n')
|
||||||
d1 = open(CERTFILE, 'r').read()
|
d1 = open(CERTFILE, 'rb').read()
|
||||||
d2 = ''
|
d2 = ''
|
||||||
# now fetch the same data from the HTTPS server
|
# now fetch the same data from the HTTPS server
|
||||||
url = 'https://127.0.0.1:%d/%s' % (
|
url = 'https://127.0.0.1:%d/%s' % (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue