mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-05 13:14:46 +00:00
Merge branch 'master' into links
This commit is contained in:
commit
48f9904af3
2 changed files with 4 additions and 0 deletions
|
|
@ -195,5 +195,8 @@ class TestParser(unittest.TestCase):
|
|||
self.encoding_test(html, "ascii")
|
||||
|
||||
def encoding_test(self, html, expected):
|
||||
# If chardet is installed Beautiful Soup uses it for encoding detection.
|
||||
# Results for html without a valid charset may differ
|
||||
# based on chardet availability.
|
||||
soup = htmlsoup.make_soup(html)
|
||||
self.assertEqual(soup.original_encoding, expected)
|
||||
|
|
|
|||
1
tox.ini
1
tox.ini
|
|
@ -3,6 +3,7 @@ envlist = py36, py37, py38, py39
|
|||
|
||||
[base]
|
||||
deps =
|
||||
chardet
|
||||
pyftpdlib
|
||||
parameterized
|
||||
pdfminer
|
||||
|
|
|
|||
Loading…
Reference in a new issue