[Python-3000-checkins] r56585 - python/branches/py3k-struni/Lib/test/test_sgmllib.py

guido.van.rossum python-3000-checkins at python.org
Fri Jul 27 19:12:11 CEST 2007


Author: guido.van.rossum
Date: Fri Jul 27 19:12:11 2007
New Revision: 56585

Modified:
   python/branches/py3k-struni/Lib/test/test_sgmllib.py
Log:
Make test_sgmllib pass on OSX. Hopefully it still passes everywhere else too.


Modified: python/branches/py3k-struni/Lib/test/test_sgmllib.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_sgmllib.py	(original)
+++ python/branches/py3k-struni/Lib/test/test_sgmllib.py	Fri Jul 27 19:12:11 2007
@@ -366,7 +366,7 @@
         # 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)


More information about the Python-3000-checkins mailing list