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:
3838 bool: True if trio is available
3939 """
4040 if not _is_anyio_available ():
41- return False
41+ return False # pragma: no cover
4242
4343 try :
4444 import trio # pragma: no cover
@@ -59,7 +59,7 @@ def _is_in_trio_context() -> bool:
5959 bool: True if we're in a trio context
6060 """
6161 if not has_trio :
62- return False
62+ return False # pragma: no cover
6363
6464 # Import trio here since we already checked it's available
6565 import trio
@@ -198,10 +198,10 @@ def _create_lock(self) -> AsyncLock:
198198 if context == "trio" and has_anyio :
199199 try :
200200 import anyio
201- except Exception :
201+ except Exception : # pragma: no cover
202202 # 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
205205
206206 # For asyncio or unknown contexts
207207 return asyncio .Lock ()
@@ -222,6 +222,7 @@ async def _awaitable(self) -> _ValueType:
222222 if self ._cache is _sentinel :
223223 self ._cache = await self ._coro
224224 return self ._cache # type: ignore
225+ # pragma: no cover
225226
226227
227228def reawaitable (
You can’t perform that action at this time.
0 commit comments