Skip to content

Commit f7e9ed1

Browse files
committed
Ignore py2-specific tests for py3 and vice versa
1 parent 37e48a7 commit f7e9ed1

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

conftest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import sys
2+
3+
4+
def pytest_ignore_collect(path):
5+
if sys.version_info[0] > 2:
6+
if str(path).endswith("__py2.py"):
7+
return True
8+
else:
9+
if str(path).endswith("__py3.py"):
10+
return True

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)