(blocking: bool = True, timeout: float = -1)
| 435 | mock_lock = mocker.MagicMock() |
| 436 | |
| 437 | def fake_acquire(blocking: bool = True, timeout: float = -1) -> bool: |
| 438 | lock._lock_level = 1 |
| 439 | lock._current_mode = "read" |
| 440 | return real_lock.acquire(blocking, timeout) |
| 441 | |
| 442 | mock_lock.acquire = fake_acquire |
| 443 | mock_lock.release = real_lock.release |
nothing calls this directly
no test coverage detected
searching dependent graphs…