8000 Get chardet tests running again. · KavanLiang/html5lib-python@d2e6674 · GitHub
[go: up one dir, main page]

Skip to content

Commit d2e6674

Browse files
committed
Get chardet tests running again.
1 parent 3640fe8 commit d2e6674

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

html5lib/tests/test_encoding.py

Lines changed: 1 addition & 2 deletions
< 45F8 td data-grid-cell-id="diff-fc5405559d1c4ff10db3c1e267df4b5527b056e0a8f842e11ca2fbad16b4ec56-59-59-2" data-line-anchor="diff-fc5405559d1c4ff10db3c1e267df4b5527b056e0a8f842e11ca2fbad16b4ec56R59" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side">
assert encoding[0].lower() == "big5"
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ def test_encoding():
5353

5454
try:
5555
import chardet
56-
def test_chardet(self):
56+
def test_chardet():
5757
data = open(os.path.join(test_dir, "encoding" , "chardet", "test_big5.txt")).read()
5858
encoding = inputstream.HTMLInputStream(data).charEncoding
5959
60-
setattr(Html5EncodingTestCase, 'test_chardet', test_chardet)
6160
except ImportError:
6261
print("chardet not found, skipping chardet tests")

0 commit comments

Comments
 (0)
0