diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ec790fe..12aab80 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,11 +19,9 @@ jobs: uses: fedora-python/tox-github-action@main with: tox_env: ${{ matrix.tox_env }} - dnf_install: gcc libxml2-devel libxslt-devel strategy: matrix: tox_env: - - py36 - py38 - py39 - py310 diff --git a/tests/test_clean.py b/tests/test_clean.py index 11cc102..64ad52d 100644 --- a/tests/test_clean.py +++ b/tests/test_clean.py @@ -331,20 +331,20 @@ def test_host_whitelist_slash_type_confusion(self): def test_host_whitelist_valid(self): # Frame with valid hostname in src is allowed. - html = '
' + html = '' expected = '' cleaner = Cleaner(frames=False, host_whitelist=["example.com"]) self.assertEqual(expected, cleaner.clean_html(html)) def test_host_whitelist_invalid(self): - html = '' + html = '' expected = '' cleaner = Cleaner(frames=False, host_whitelist=["example.com"]) self.assertEqual(expected, cleaner.clean_html(html)) def test_host_whitelist_sneaky_userinfo(self): # Regression test: Don't be fooled by hostname and colon in userinfo. - html = '' + html = '' expected = '' cleaner = Cleaner(frames=False, host_whitelist=["example.com"]) self.assertEqual(expected, cleaner.clean_html(html)) diff --git a/tests/test_clean.txt b/tests/test_clean.txt index 0a6dd0b..227935b 100644 --- a/tests/test_clean.txt +++ b/tests/test_clean.txt @@ -84,7 +84,7 @@ a link - a control char link + a control char link data another linka paragraph
diff --git a/tox.ini b/tox.ini index 8706ef5..4544ea0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py36,py38,py39,py310,py311,py312,py313,mypy +envlist = py38,py39,py310,py311,py312,py313,mypy skipsdist = True [testenv]