Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd2e6674

Browse files
committed
Get chardet tests running again.
1 parent3640fe8 commitd2e6674

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
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ def test_encoding():
5353

5454
try:
5555
importchardet
56-
deftest_chardet(self):
56+
deftest_chardet():
5757
data=open(os.path.join(test_dir,"encoding" ,"chardet","test_big5.txt")).read()
5858
encoding=inputstream.HTMLInputStream(data).charEncoding
5959
assertencoding[0].lower()=="big5"
60-
setattr(Html5EncodingTestCase,'test_chardet',test_chardet)
6160
exceptImportError:
6261
print("chardet not found, skipping chardet tests")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp