File: conftest.py

package info (click to toggle)
jaraco.itertools 2.0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 204 kB
  • sloc: python: 439; sh: 7; makefile: 6
file content (19 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import six


def pytest_collection_modifyitems(session, config, items):
	remove_PY2_broken_tests(items)


def remove_PY2_broken_tests(items):
	if six.PY3:
		return
	broken_test_names = [
		'jaraco.itertools.always_iterable',
		'jaraco.itertools.flatten',
	]
	items[:] = (
		item
		for item in items
		if item.name not in broken_test_names
	)