Skip to content

Commit

Permalink
Fix lint and spelling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Dec 16, 2021
1 parent 64748a2 commit 361fc44
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pyspelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_extra/test_soup_contains.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """
<body><div id="1">Testing that <span id="2"><![CDATA[that]]></span>contains works.</div></body>
"""

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")',
Expand Down
4 changes: 2 additions & 2 deletions tests/test_extra/test_soup_contains_own.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """
<body><div id="1">Testing that <span id="2"><![CDATA[that]]></span>contains works.</div></body>
"""

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")',
Expand Down

0 comments on commit 361fc44

Please sign in to comment.