Skip to content

Commit

Permalink
Merge pull request #10 from sbraz/skip_pypy
Browse files Browse the repository at this point in the history
Skip always_iterable test for PyPy3, fixes #7
  • Loading branch information
jaraco committed Sep 18, 2021
2 parents 8548a1d + 6b46b88 commit 8773c31
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import sys


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


def remove_broken_tests(items):
# Remove broken tests for PyPy3
if hasattr(sys, 'pypy_version_info'):
broken_test_names = ['jaraco.itertools.always_iterable']
items[:] = (item for item in items if item.name not in broken_test_names)

0 comments on commit 8773c31

Please sign in to comment.