concurrency.py
This file
Path
tests/concurrency.py
15 lines · 323 bytes · Python
Last changed by
Increase test coverage - take 2 (#1012)Josep Cugatbefore adoption620b067
History of this fileTake it
The walk stopped after 200 commits: lines older than ab9ace2 point at it.
Fix bytes support in multipart uploads (#974)Florimond Mancabefore adoptionab9ace2
line 1why, one step back1"""Remove unused concurrency test utils (#989)Florimond Mancabefore adoption440b5ab
line 2why, one step back2Async environment-agnostic concurrency utilities that are only used in tests.Fix bytes support in multipart uploads (#974)Florimond Mancabefore adoptionab9ace2
lines 3–10why, one step back3"""45import asyncio67import sniffio8import trio910Remove unused concurrency test utils (#989)Florimond Mancabefore adoption440b5ab
line 11why, one step back11async def sleep(seconds: float) -> None:Fix bytes support in multipart uploads (#974)Florimond Mancabefore adoptionab9ace2
line 12why, one step back12 if sniffio.current_async_library() == "trio":Increase test coverage - take 2 (#1012)Josep Cugatbefore adoption620b067
line 13why, one step back13 await trio.sleep(seconds) # pragma: nocoverFix bytes support in multipart uploads (#974)Florimond Mancabefore adoptionab9ace2
lines 14–15why, one step back14 else:15 await asyncio.sleep(seconds)