File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def _is_trio_available() -> bool:
38
38
bool: True if trio is available
39
39
"""
40
40
if not _is_anyio_available ():
41
- return False
41
+ return False # pragma: no cover
42
42
43
43
try :
44
44
import trio # pragma: no cover
@@ -59,7 +59,7 @@ def _is_in_trio_context() -> bool:
59
59
bool: True if we're in a trio context
60
60
"""
61
61
if not has_trio :
62
- return False
62
+ return False # pragma: no cover
63
63
64
64
# Import trio here since we already checked it's available
65
65
import trio
@@ -198,10 +198,10 @@ def _create_lock(self) -> AsyncLock:
198
198
if context == "trio" and has_anyio :
199
199
try :
200
200
import anyio
201
- except Exception :
201
+ except Exception : # pragma: no cover
202
202
# Just continue to asyncio if anyio import fails
203
- return asyncio .Lock ()
204
- return anyio .Lock ()
203
+ return asyncio .Lock () # pragma: no cover
204
+ return anyio .Lock () # pragma: no cover
205
205
206
206
# For asyncio or unknown contexts
207
207
return asyncio .Lock ()
@@ -222,6 +222,7 @@ async def _awaitable(self) -> _ValueType:
222
222
if self ._cache is _sentinel :
223
223
self ._cache = await self ._coro
224
224
return self ._cache # type: ignore
225
+ # pragma: no cover
225
226
226
227
227
228
def reawaitable (
You can’t perform that action at this time.
0 commit comments