()
| 42 | |
| 43 | |
| 44 | def 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 | |
| 57 | def test_subclassing_both_item_and_collector_deprecated( |
nothing calls this directly
no outgoing calls
no test coverage detected