We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27136a4 commit 81ed771Copy full SHA for 81ed771
nibabel/__future__/conftest.py
@@ -0,0 +1,16 @@
1
+import pytest
2
+from packaging.version import Version
3
+from . import future_flags
4
+
5
+if Version(pytest.__version__) >= Version("7"):
6
+ def pytest_ignore_collect(collection_path):
7
+ if collection_path.name == "example_feature.py":
8
+ return True
9
+ if collection_path.stem in future_flags:
10
11
+else:
12
+ def pytest_ignore_collect(path):
13
+ if path.basename == "example_feature.py":
14
15
+ if path.basename[:-3] in future_flags:
16
0 commit comments