From: Tom Christie Date: Thu, 5 Dec 2019 11:03:27 +0000 (+0000) Subject: Fix Timeout -> TimeoutException in test case (#598) X-Git-Tag: 0.9.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dad379736df5b0bf8ae2ce038830e9bb289f3ddb;p=thirdparty%2Fhttpx.git Fix Timeout -> TimeoutException in test case (#598) --- diff --git a/tests/dispatch/test_http2.py b/tests/dispatch/test_http2.py index 2fb6701a..375b8053 100644 --- a/tests/dispatch/test_http2.py +++ b/tests/dispatch/test_http2.py @@ -6,7 +6,7 @@ import h2.events import pytest from h2.settings import SettingCodes -from httpx import Client, Response, Timeout +from httpx import Client, Response, TimeoutException from .utils import MockHTTP2Backend @@ -142,7 +142,7 @@ async def test_http2_live_request(backend): async with Client(backend=backend, http2=True) as client: try: resp = await client.get("https://nghttp2.org/httpbin/anything") - except Timeout: + except TimeoutException: pytest.xfail(reason="nghttp2.org appears to be unresponsive") except socket.gaierror: pytest.xfail(reason="You appear to be offline")