diff options
author | Guido van Rossum <guido@python.org> | 2007-07-27 17:12:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-07-27 17:12:11 (GMT) |
commit | 624ab7c28ab8a57f922f47b19b1a5cce7bc26dd2 (patch) | |
tree | 47d437b2a5dfed3f077661862039125849c37d77 | |
parent | 45c85d15b006c5a504e322dafb507af557abad1f (diff) | |
download | cpython-624ab7c28ab8a57f922f47b19b1a5cce7bc26dd2.zip cpython-624ab7c28ab8a57f922f47b19b1a5cce7bc26dd2.tar.gz cpython-624ab7c28ab8a57f922f47b19b1a5cce7bc26dd2.tar.bz2 |
Make test_sgmllib pass on OSX. Hopefully it still passes everywhere else too.
-rw-r--r-- | Lib/test/test_sgmllib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sgmllib.py b/Lib/test/test_sgmllib.py index b698636..f0f8ad6 100644 --- a/Lib/test/test_sgmllib.py +++ b/Lib/test/test_sgmllib.py @@ -366,7 +366,7 @@ DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN' # Just verify this code doesn't cause a hang. CHUNK = 1024 # increasing this to 8212 makes the problem go away - f = open(test_support.findfile('sgml_input.html')) + f = open(test_support.findfile('sgml_input.html'), encoding="latin-1") fp = sgmllib.SGMLParser() while 1: data = f.read(CHUNK) |