File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def pytest_configure(config):
70
70
# DEV: We must wrap with `@pytest.mark.hookwrapper` to inherit from default (e.g. honor `--ignore`)
71
71
# https://github.com/pytest-dev/pytest/issues/846#issuecomment-122129189
72
72
@pytest .hookimpl (hookwrapper = True )
73
- def pytest_ignore_collect (path , config ):
73
+ def pytest_ignore_collect (collection_path , config ):
74
74
"""
75
75
Skip directories defining a required minimum Python version
76
76
@@ -90,10 +90,10 @@ def pytest_ignore_collect(path, config):
90
90
# Was not ignored by default behavior
91
91
if not outcome .get_result ():
92
92
# DEV: `path` is a `LocalPath`
93
- path = str (path )
94
- if not os .path .isdir (path ):
95
- path = os .path .dirname (path )
96
- dirname = os .path .basename (path )
93
+ collection_path = str (collection_path )
94
+ if not os .path .isdir (collection_path ):
95
+ collection_path = os .path .dirname (collection_path )
96
+ dirname = os .path .basename (collection_path )
97
97
98
98
# Directory name match `py[23][0-9]`
99
99
if PY_DIR_PATTERN .match (dirname ):
You can’t perform that action at this time.
0 commit comments