Skip to content

Commit 361fc44

Browse files
committedDec 16, 2021
Fix lint and spelling issues
1 parent 64748a2 commit 361fc44

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎.pyspelling.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ matrix:
2121
ignores:
2222
- 'code, pre, a.magiclink, span.keys'
2323
- '.MathJax_Preview, .md-nav__link, .md-footer-custom-text, .md-source__repository, .headerlink, .md-icon'
24-
- '.md-footer-social__link'
24+
- '.md-social__link'
2525
- pyspelling.filters.url:
2626

2727
- name: markdown

‎tests/test_extra/test_soup_contains.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ def test_contains_cdata_lxml_html(self):
177177
"""Test contains CDATA in `lxml` HTML parser."""
178178

179179
from lxml import etree
180-
LIBXML_VER = etree.LIBXML_VERSION
180+
libxml_ver = etree.LIBXML_VERSION
181181

182182
markup = """
183183
<body><div id="1">Testing that <span id="2"><![CDATA[that]]></span>contains works.</div></body>
184184
"""
185185

186-
results = ['1', '2'] if LIBXML_VER >= (2, 9, 11) else ['1']
186+
results = ['1', '2'] if libxml_ver >= (2, 9, 11) else ['1']
187187
self.assert_selector(
188188
markup,
189189
'body *:-soup-contains("that")',

‎tests/test_extra/test_soup_contains_own.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ def test_contains_own_cdata_lxml_html(self):
6868
"""Test contains CDATA in `lxml` HTML."""
6969

7070
from lxml import etree
71-
LIBXML_VER = etree.LIBXML_VERSION
71+
libxml_ver = etree.LIBXML_VERSION
7272

7373
markup = """
7474
<body><div id="1">Testing that <span id="2"><![CDATA[that]]></span>contains works.</div></body>
7575
"""
7676

77-
results = ['1', '2'] if LIBXML_VER >= (2, 9, 11) else ['1']
77+
results = ['1', '2'] if libxml_ver >= (2, 9, 11) else ['1']
7878
self.assert_selector(
7979
markup,
8080
'body *:-soup-contains-own("that")',

0 commit comments

Comments
 (0)
Please sign in to comment.