Skip to content

Commit 1ac7349

Browse files
committed
TST run tests without parsel by default, ann environments with parsel
1 parent ef979dc commit 1ac7349

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/test_html_text.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def test_bad_punct_whitespace():
101101

102102

103103
def test_selectors(all_options):
104+
pytest.importorskip("parsel")
104105
html = (u'<span><span id="extract-me">text<a>more</a>'
105106
'</span>and more text <a> and some more</a> <a></a> </span>')
106107
# Selector

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[tox]
2-
envlist = py27,py35,py36,py37
2+
envlist = py27,py35,py36,py37,{py2,py3}-parsel
33

44
[testenv]
55
deps =
66
pytest
77
pytest-cov
8-
parsel
8+
{py2,py3}-parsel: parsel
99

1010
commands =
1111
pip install -U pip

0 commit comments

Comments
 (0)