refactor: name unused mock arguments, flatten withs

This commit is contained in:
Abdessamad Derraz committed 2026-10-06 07:06:53 +02:00
1 parent 13995047fc
commit ce239d32c1
3 files changed
+17 -22

No files matched your search

+2 -3
View File
@@ -130,9 +130,8 @@ class PackWalkHoldsTheCache(unittest.TestCase):
registry = {"sdlpal": {"local_cache": str(cache)}}
walk = _data_directory_members(systems, registry, "p", "", False, set(), set(), set())
next(walk)
with (
open(cache.with_name(".sdlpal.lock"), "a") as handle,
self.assertRaises(BlockingIOError),
with open(cache.with_name(".sdlpal.lock"), "a") as handle, self.assertRaises(
BlockingIOError
):
fcntl.flock(handle, fcntl.LOCK_EX | fcntl.LOCK_NB)
list(walk)