()
| 40 | |
| 41 | |
| 42 | async def test_connection_error(): |
| 43 | print("\n--- ConnectionError (refused) ---") |
| 44 | try: |
| 45 | await rnet.get("http://127.0.0.1:9999") |
| 46 | except rnet_errors as e: |
| 47 | print(f"Caught: {type(e).__name__}: {e}") |
| 48 | except Exception as e: |
| 49 | print(f"Other error: {type(e).__name__}: {e}") |
| 50 | |
| 51 | |
| 52 | async def test_urlparse_error(): |