We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0941326 commit 2aff0a3Copy full SHA for 2aff0a3
html5lib/tests/test_encoding.py
@@ -54,7 +54,7 @@ def test_encoding():
54
try:
55
import chardet
56
def test_chardet():
57
- data = open(os.path.join(test_dir, "encoding" , "chardet", "test_big5.txt")).read()
+ data = open(os.path.join(test_dir, "encoding" , "chardet", "test_big5.txt"), "rb").read()
58
encoding = inputstream.HTMLInputStream(data).charEncoding
59
assert encoding[0].lower() == "big5"
60
except ImportError:
0 commit comments