()
| 1183 | |
| 1184 | |
| 1185 | def test_pytest_param_id_requires_string() -> None: |
| 1186 | with pytest.raises(TypeError) as excinfo: |
| 1187 | pytest.param(id=True) # type: ignore[arg-type] |
| 1188 | (msg,) = excinfo.value.args |
| 1189 | expected = ( |
| 1190 | "Expected id to be a string or a `pytest.HIDDEN_PARAM` sentinel, " |
| 1191 | "got <class 'bool'>: True" |
| 1192 | ) |
| 1193 | assert msg == expected |
| 1194 | |
| 1195 | |
| 1196 | @pytest.mark.parametrize("s", (None, "hello world")) |
nothing calls this directly
no test coverage detected
searching dependent graphs…