From 361fc44b5cc4fc585f4ec5b44cfbdf9cdea1a414 Mon Sep 17 00:00:00 2001 From: facelessuser Date: Thu, 16 Dec 2021 13:45:38 -0700 Subject: [PATCH] Fix lint and spelling issues --- .pyspelling.yml | 2 +- tests/test_extra/test_soup_contains.py | 4 ++-- tests/test_extra/test_soup_contains_own.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pyspelling.yml b/.pyspelling.yml index 753efd4..feb7285 100644 --- a/.pyspelling.yml +++ b/.pyspelling.yml @@ -21,7 +21,7 @@ matrix: ignores: - 'code, pre, a.magiclink, span.keys' - '.MathJax_Preview, .md-nav__link, .md-footer-custom-text, .md-source__repository, .headerlink, .md-icon' - - '.md-footer-social__link' + - '.md-social__link' - pyspelling.filters.url: - name: markdown diff --git a/tests/test_extra/test_soup_contains.py b/tests/test_extra/test_soup_contains.py index af5fa3b..66240db 100644 --- a/tests/test_extra/test_soup_contains.py +++ b/tests/test_extra/test_soup_contains.py @@ -177,13 +177,13 @@ def test_contains_cdata_lxml_html(self): """Test contains CDATA in `lxml` HTML parser.""" from lxml import etree - LIBXML_VER = etree.LIBXML_VERSION + libxml_ver = etree.LIBXML_VERSION markup = """
Testing that contains works.
""" - results = ['1', '2'] if LIBXML_VER >= (2, 9, 11) else ['1'] + results = ['1', '2'] if libxml_ver >= (2, 9, 11) else ['1'] self.assert_selector( markup, 'body *:-soup-contains("that")', diff --git a/tests/test_extra/test_soup_contains_own.py b/tests/test_extra/test_soup_contains_own.py index cb4118b..a4b33b4 100644 --- a/tests/test_extra/test_soup_contains_own.py +++ b/tests/test_extra/test_soup_contains_own.py @@ -68,13 +68,13 @@ def test_contains_own_cdata_lxml_html(self): """Test contains CDATA in `lxml` HTML.""" from lxml import etree - LIBXML_VER = etree.LIBXML_VERSION + libxml_ver = etree.LIBXML_VERSION markup = """
Testing that contains works.
""" - results = ['1', '2'] if LIBXML_VER >= (2, 9, 11) else ['1'] + results = ['1', '2'] if libxml_ver >= (2, 9, 11) else ['1'] self.assert_selector( markup, 'body *:-soup-contains-own("that")',