()
| 428 | |
| 429 | |
| 430 | def test_context() -> None: |
| 431 | monkeypatch = MonkeyPatch() |
| 432 | |
| 433 | import functools |
| 434 | import inspect |
| 435 | |
| 436 | with monkeypatch.context() as m: |
| 437 | m.setattr(functools, "partial", 3) |
| 438 | assert not inspect.isclass(functools.partial) |
| 439 | assert inspect.isclass(functools.partial) |
| 440 | |
| 441 | |
| 442 | def test_context_classmethod() -> None: |
nothing calls this directly
no test coverage detected