nodes,python: mark abstract node classes as ABCs

Fixes #11676
This commit is contained in:
Ran Benita
2023-12-06 18:27:17 +02:00
parent a536f49d91
commit 0ae02e2165
9 changed files with 39 additions and 12 deletions
+6
View File
@@ -73,6 +73,12 @@ def test_subclassing_both_item_and_collector_deprecated(
"""Legacy ctor with legacy call # don't wana see"""
super().__init__(fspath, parent)
def collect(self):
raise NotImplementedError()
def runtest(self):
raise NotImplementedError()
with pytest.warns(PytestWarning) as rec:
SoWrong.from_parent(
request.session, fspath=legacy_path(tmp_path / "broken.txt")