Skip to content

Commit ea0fddd

Browse files
committed
fix test_proxy platform specific exc message
1 parent f243adf commit ea0fddd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

samples/openapi3/client/petstore/python-httpx-sync/tests/test_pet_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,8 @@ def test_proxy(self):
225225
pet_api = petstore_api.PetApi(client)
226226
assert self.pet.id is not None
227227

228-
with self.assertRaisesRegex(
228+
with self.assertRaises(
229229
petstore_api.rest.httpx.ConnectError,
230-
"\[Errno 111\] Connection refused",
231230
):
232231
pet_api.get_pet_by_id(self.pet.id)
233232

0 commit comments

Comments
 (0)