()
| 30 | |
| 31 | |
| 32 | async def test_timeout_error(): |
| 33 | print("\n--- TimeoutError (timeout) ---") |
| 34 | try: |
| 35 | await rnet.get("https://httpbin.org/delay/10", timeout=1) |
| 36 | except rnet_errors as e: |
| 37 | print(f"Caught: {type(e).__name__}: {e}") |
| 38 | except Exception as e: |
| 39 | print(f"Other error: {type(e).__name__}: {e}") |
| 40 | |
| 41 | |
| 42 | async def test_connection_error(): |