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

Class PrivateInit

testing/deprecated_test.py:132–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131def test_private_is_deprecated() -> None:
132 class PrivateInit:
133 def __init__(self, foo: int, *, _ispytest: bool = False) -> None:
134 deprecated.check_ispytest(_ispytest)
135
136 with pytest.warns(
137 pytest.PytestDeprecationWarning, match="private pytest class or function"

Callers 1

Calls

no outgoing calls

Tested by 1