()
| 129 | |
| 130 | |
| 131 | def 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" |
| 138 | ): |
| 139 | PrivateInit(10) |
| 140 | |
| 141 | # Doesn't warn. |
| 142 | PrivateInit(10, _ispytest=True) |
| 143 | |
| 144 | |
| 145 | def test_raising_unittest_skiptest_during_collection_is_deprecated( |
nothing calls this directly
no test coverage detected