mirror of https://github.com/python/cpython.git
Make test_sgmllib pass on OSX. Hopefully it still passes everywhere else too.
This commit is contained in:
parent
45c85d15b0
commit
624ab7c28a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue