()
| 399 | |
| 400 | |
| 401 | def test_context() -> None: |
| 402 | monkeypatch = MonkeyPatch() |
| 403 | |
| 404 | import functools |
| 405 | import inspect |
| 406 | |
| 407 | with monkeypatch.context() as m: |
| 408 | m.setattr(functools, "partial", 3) |
| 409 | assert not inspect.isclass(functools.partial) |
| 410 | assert inspect.isclass(functools.partial) |
| 411 | |
| 412 | |
| 413 | def test_context_classmethod() -> None: |
nothing calls this directly
no test coverage detected