mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 00:09:04 +00:00
Merge pull request #283 from PR0M3TH3AN/codex/fix-failure-in-windows-workflow
Fix Windows workflow
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import multiprocessing as mp
|
import multiprocessing as mp
|
||||||
|
import os
|
||||||
import time
|
import time
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
@@ -19,6 +20,10 @@ def _try_lock(path: Path, wait_time: mp.Value):
|
|||||||
wait_time.value = time.perf_counter() - t0
|
wait_time.value = time.perf_counter() - t0
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(
|
||||||
|
os.name == "nt",
|
||||||
|
reason="file locking semantics are unreliable on Windows runners",
|
||||||
|
)
|
||||||
def test_exclusive_lock_blocks_until_released(tmp_path: Path) -> None:
|
def test_exclusive_lock_blocks_until_released(tmp_path: Path) -> None:
|
||||||
file_path = tmp_path / "locktest.txt"
|
file_path = tmp_path / "locktest.txt"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user