File tree 1 file changed +8
-4
lines changed 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 22
22
skip_if_hg_missing = pytest .mark .skipif (not which ("hg" ), reason = "hg is not available" )
23
23
24
24
25
- def pytest_ignore_collect (path , config : pytest .Config ):
26
- if not which ("svn" ) and any (needle in path for needle in ["svn" , "subversion" ]):
25
+ def pytest_ignore_collect (collection_path : pathlib .Path , config : pytest .Config ) -> bool :
26
+ if not which ("svn" ) and any (
27
+ needle in str (collection_path ) for needle in ["svn" , "subversion" ]
28
+ ):
27
29
return True
28
- if not which ("git" ) and "git" in path :
30
+ if not which ("git" ) and "git" in str ( collection_path ) :
29
31
return True
30
- if not which ("hg" ) and any (needle in path for needle in ["hg" , "mercurial" ]):
32
+ if not which ("hg" ) and any (
33
+ needle in str (collection_path ) for needle in ["hg" , "mercurial" ]
34
+ ):
31
35
return True
32
36
33
37
return False
You can’t perform that action at this time.
0 commit comments