Skip to content

Commit 979b97c

Browse files
committed
TEMP: harden/check
1 parent 795fc84 commit 979b97c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/_pytest/nodes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ def gethookproxy(self, fspath):
436436
from _pytest.python import Package
437437

438438
if not isinstance(self, (Session, Package)):
439+
assert isinstance(self, File), self
439440
# Prevent making it "more public" with the move to the base class.
440441
raise AttributeError()
441442

0 commit comments

Comments
 (0)