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

Method __init__

testing/deprecated_test.py:133–134  ·  view source on GitHub ↗
(self, foo: int, *, _ispytest: bool = False)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected