(self, con)
| 2098 | await con.close() |
| 2099 | |
| 2100 | async def _test_cancellation_recovery(self, con): |
| 2101 | self.assertEqual(await con.fetchval('SELECT 42'), 42) |
| 2102 | with self.assertRaises(asyncio.TimeoutError): |
| 2103 | await con.execute('SELECT pg_sleep(5)', timeout=0.5) |
| 2104 | self.assertEqual(await con.fetchval('SELECT 43'), 43) |
| 2105 | |
| 2106 | async def _test_pool(self, *, expected_ssl, **conn_args): |
| 2107 | pool = await self.create_pool(min_size=5, max_size=10, **conn_args) |
no test coverage detected