mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Make test_sgmllib pass on OSX. Hopefully it still passes everywhere else too.
This commit is contained in:
parent
45c85d15b0
commit
624ab7c28a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue