diff options
author | Bill Janssen <janssen@parc.com> | 2007-09-16 23:16:46 (GMT) |
---|---|---|
committer | Bill Janssen <janssen@parc.com> | 2007-09-16 23:16:46 (GMT) |
commit | bf10c47389d13b97e75855b262e077bfa688968c (patch) | |
tree | 703f32ca9b9bfd52aab458a0b9c1c244f2dd218d /Lib | |
parent | 296a59d3be01d6ac77fe674333104eb89fd5e695 (diff) | |
download | cpython-bf10c47389d13b97e75855b262e077bfa688968c.zip cpython-bf10c47389d13b97e75855b262e077bfa688968c.tar.gz cpython-bf10c47389d13b97e75855b262e077bfa688968c.tar.bz2 |
use binary mode when reading files for testAsyncore to make Windows happy
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_ssl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 5f6d6a4..7e78b4c 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -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' % ( |