File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
tests/test_primitives/test_reawaitable Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,10 @@ def _access_private_lock(awaitable, lock=None):
76
76
def _get_sentinel ():
77
77
"""Helper to get the sentinel value."""
78
78
# Import here to avoid issues with accessing private module attributes
79
- from returns .primitives .reawaitable import _sentinel # noqa: PLC0415, PLC2701
79
+ from returns .primitives .reawaitable import (
80
+ _sentinel , # noqa: PLC2701
81
+ )
82
+
80
83
return _sentinel
81
84
82
85
@@ -319,7 +322,9 @@ async def _test_lock_path():
319
322
# Test lock path when cache is already set (the missing branch)
320
323
_access_private_cache (awaitable , 99 )
321
324
cached_result = await _call_private_awaitable (awaitable )
322
- assert cached_result == 99 # Should return cached value without entering if block
325
+ assert (
326
+ cached_result == 99
327
+ ) # Should return cached value without entering if block
323
328
assert counter .count == 1 # Should not increment
324
329
325
330
@@ -373,5 +378,5 @@ async def test_specific_branch_coverage():
373
378
# Test fallback path where cache is already set
374
379
await _test_fallback_with_cached_value ()
375
380
376
- # Test lock path where cache is already set
381
+ # Test lock path where cache is already set
377
382
await _test_lock_with_cached_value ()
You can’t perform that action at this time.
0 commit comments