MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_node_direct_construction_deprecated

Function test_node_direct_construction_deprecated

testing/test_nodes.py:44–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44def test_node_direct_construction_deprecated() -> None:
45 with pytest.raises(
46 OutcomeException,
47 match=(
48 "Direct construction of _pytest.nodes.Node has been deprecated, please "
49 "use _pytest.nodes.Node.from_parent.\nSee "
50 "https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent"
51 " for more details."
52 ),
53 ):
54 nodes.Node(None, session=None) # type: ignore[arg-type]
55
56
57def test_subclassing_both_item_and_collector_deprecated(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected