MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / test_bad_builder

Function test_bad_builder

python/examples/exceptions.py:22–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22async def test_bad_builder():
23 print("\n--- BuilderError (bad builder) ---")
24 try:
25 await rnet.get("htt://httpbin.org/status/404")
26 except rnet_errors as e:
27 print(f"Caught: {type(e).__name__}: {e}")
28 except Exception as e:
29 print(f"Other error: {type(e).__name__}: {e}")
30
31
32async def test_timeout_error():

Callers 1

mainFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected