From 624ab7c28ab8a57f922f47b19b1a5cce7bc26dd2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 27 Jul 2007 17:12:11 +0000 Subject: [PATCH] Make test_sgmllib pass on OSX. Hopefully it still passes everywhere else too. --- Lib/test/test_sgmllib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_sgmllib.py b/Lib/test/test_sgmllib.py index b6986360ac1..f0f8ad6d322 100644 --- a/Lib/test/test_sgmllib.py +++ b/Lib/test/test_sgmllib.py @@ -366,7 +366,7 @@ def test_read_chunks(self): # 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)