(s, url)
| 76 | |
| 77 | async def async_session_get_test(session_class, url, requests_number): |
| 78 | async def aget(s, url): |
| 79 | if session_class.__module__ == "aiohttp.client": |
| 80 | async with s.get(url) as resp: |
| 81 | return await resp.read() |
| 82 | if session_class.__name__ == "Client": |
| 83 | resp = await s.get(url) |
| 84 | return await resp.bytes() |
| 85 | else: |
| 86 | resp = await s.get(url) |
| 87 | return resp.text |
| 88 | |
| 89 | try: |
| 90 | async with session_class() as s: |
no test coverage detected