Skip to content

Commit

Permalink
Fix pytest hook so that ignore works consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwillard committed Aug 26, 2018
1 parent b12fd33 commit 32033b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@


def pytest_ignore_collect(path, config):
return (("py3_only" in path.basename and not PY3)
or ("py35_only" in path.basename and not PY35)
or ("py36_only" in path.basename and not PY36))
return (("py3_only" in path.basename and not PY3) or
("py35_only" in path.basename and not PY35) or
("py36_only" in path.basename and not PY36) or None)


def pyimport_patch_mismatch(self, **kwargs):
Expand Down

0 comments on commit 32033b0

Please sign in to comment.