We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb2987b commit e561c69Copy full SHA for e561c69
tests/test_async.py
@@ -304,7 +304,7 @@ async def test_detailed_exception(self):
304
with self.assertRaises(httpx.HTTPStatusError) as e:
305
await client.get("/endpoint")
306
307
- assert "Error '404 Not Found Because of x' for url 'https://api.example.com/endpoint'" in str(e.exception)
+ assert "Client error '404 Not Found' for url 'https://api.example.com/endpoint'" in str(e.exception)
308
309
if __name__ == "__main__":
310
unittest.main()
0 commit comments