Make test_sgmllib pass on OSX. Hopefully it still passes everywhere else too.

This commit is contained in:
Guido van Rossum 2007-07-27 17:12:11 +00:00
parent 45c85d15b0
commit 624ab7c28a
1 changed files with 1 additions and 1 deletions

View File

@ -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)