mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-11 14:03:23 -05:00
refactor: name unused mock arguments, flatten withs
This commit is contained in:
1 parent
13995047fc
commit
ce239d32c1
3 files changed
+17
-22
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user