| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -873,7 +873,7 @@ def test_blocking_lock_waits_for_existing_holder(tmp_path, monkeypatch, path_typ | |||
| 873 | 873 | waiter = BlockingLockFile(path, check_interval_s=0.01, max_block_time_s=1) | |
| 874 | 874 | owner._obtain_lock() | |
| 875 | 875 | try: | |
| 876 | - with mock.patch("git.util.time.sleep", side_effect=lambda _: owner._release_lock()) as sleep: | ||
| 876 | + with mock.patch.object(time, "sleep", side_effect=lambda _: owner._release_lock()) as sleep: | ||
| 877 | 877 | waiter._obtain_lock() | |
| 878 | 878 | sleep.assert_called_once_with(0.01) | |
| 879 | 879 | assert waiter._has_lock() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments