Skip to content

Commit c070075

Browse files
committed
assert
1 parent 26e64dd commit c070075

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_pytest/python.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,8 @@ def setup(self):
606606
def gethookproxy(self, fspath: py.path.local):
607607
return super()._gethookproxy(fspath)
608608

609-
def isinitpath(self, path):
609+
def isinitpath(self, path: "py.path.local") -> bool:
610+
assert isinstance(path, py.path.local), repr(path)
610611
return path in self.session._initialpaths
611612

612613
def collect(self):

0 commit comments

Comments
 (0)