]> granicus.if.org Git - python/commitdiff
Make test_sgmllib pass on OSX. Hopefully it still passes everywhere else too.
authorGuido van Rossum <guido@python.org>
Fri, 27 Jul 2007 17:12:11 +0000 (17:12 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 27 Jul 2007 17:12:11 +0000 (17:12 +0000)
Lib/test/test_sgmllib.py

index b6986360ac137b9a9242d95fc7c703c34ece767a..f0f8ad6d322f6b56e66252e52dfaf349254f918c 100644 (file)
@@ -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)