We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a7ae090 + a2af585 commit 6b9a2bfCopy full SHA for 6b9a2bf
tests/conftest.py
@@ -5,12 +5,12 @@
5
_VERSION_MARKER = re.compile(r'_py(?P<major_version>\d)(?P<minor_version>\d)?')
6
7
8
-def pytest_ignore_collect(path, config):
+def pytest_ignore_collect(collection_path, config):
9
"""
10
Ignore tests that end with _pyX, where X does not equal this
11
interpreter's major version.
12
13
- filename = path.basename
+ filename = collection_path.name
14
modulename = filename.split('.', 1)[0]
15
match = _VERSION_MARKER.search(modulename)
16
if not match:
0 commit comments