(Sample: type[Sample])
| 382 | ids=["new", "new-inherit"], |
| 383 | ) |
| 384 | def test_issue156_undo_staticmethod(Sample: type[Sample]) -> None: |
| 385 | monkeypatch = MonkeyPatch() |
| 386 | |
| 387 | monkeypatch.setattr(Sample, "hello", None) |
| 388 | assert Sample.hello is None |
| 389 | |
| 390 | monkeypatch.undo() # type: ignore[unreachable] |
| 391 | assert Sample.hello() |
| 392 | |
| 393 | |
| 394 | def test_undo_class_descriptors_delattr() -> None: |
nothing calls this directly
no test coverage detected