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
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
assert encoding[0].lower() == "big5"
60-
setattr(Html5EncodingTestCase, 'test_chardet', test_chardet)
6160
except ImportError:
6261
print("chardet not found, skipping chardet tests")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy