Bindings are cleaned up
(self)
| 430 | |
| 431 | class TestBoundThreadlocal: |
| 432 | def test_cleanup(self): |
| 433 | """ |
| 434 | Bindings are cleaned up |
| 435 | """ |
| 436 | with pytest.deprecated_call(), bound_threadlocal(x=42, y="foo"): |
| 437 | assert {"x": 42, "y": "foo"} == get_threadlocal() |
| 438 | |
| 439 | with pytest.deprecated_call(): |
| 440 | assert {} == get_threadlocal() |
| 441 | |
| 442 | def test_cleanup_conflict(self): |
| 443 | """ |
nothing calls this directly
no test coverage detected