()
| 292 | errs = [] |
| 293 | |
| 294 | def go(): |
| 295 | async def main(): |
| 296 | tasks = [task() for _ in range(2)] |
| 297 | |
| 298 | await asyncio.gather(*tasks) |
| 299 | await engine.dispose() |
| 300 | |
| 301 | async def task(): |
| 302 | async with engine.begin() as connection: |
| 303 | result = await connection.execute(select(1)) |
| 304 | result.all() |
| 305 | |
| 306 | try: |
| 307 | engine = engines.testing_engine(asyncio=True) |
| 308 | |
| 309 | asyncio.run(main()) |
| 310 | except Exception as err: |
| 311 | errs.append(err) |
| 312 | |
| 313 | t = threading.Thread(target=go) |
| 314 | t.start() |
nothing calls this directly
no test coverage detected