Skip to content

Commit 5827a76

Browse files
committed
Disable always_iterable test on Python 2. Ref #1.
1 parent 5e337a0 commit 5827a76

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

conftest.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import six
2+
3+
4+
def pytest_collection_modifyitems(session, config, items):
5+
remove_PY2_broken_tests(items)
6+
7+
8+
def remove_PY2_broken_tests(items):
9+
if six.PY3:
10+
return
11+
broken_test_names = [
12+
'jaraco.itertools.always_iterable',
13+
]
14+
items[:] = (
15+
item
16+
for item in items
17+
if item.name not in broken_test_names
18+
)

0 commit comments

Comments
 (0)