From: Guido van Rossum Date: Fri, 27 Jul 2007 17:12:11 +0000 (+0000) Subject: Make test_sgmllib pass on OSX. Hopefully it still passes everywhere else too. X-Git-Tag: v3.0a1~571 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=624ab7c28ab8a57f922f47b19b1a5cce7bc26dd2;p=python Make test_sgmllib pass on OSX. Hopefully it still passes everywhere else too. --- diff --git a/Lib/test/test_sgmllib.py b/Lib/test/test_sgmllib.py index b6986360ac..f0f8ad6d32 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)