()
| 154 | |
| 155 | |
| 156 | def test_setitem_deleted_meanwhile() -> None: |
| 157 | d: dict[str, object] = {} |
| 158 | monkeypatch = MonkeyPatch() |
| 159 | monkeypatch.setitem(d, "x", 2) |
| 160 | del d["x"] |
| 161 | monkeypatch.undo() |
| 162 | assert not d |
| 163 | |
| 164 | |
| 165 | @pytest.mark.parametrize("before", [True, False]) |
nothing calls this directly
no test coverage detected