From c4e3fb6f133c61b0dd7d09bcabd9fe1ac73c3eed Mon Sep 17 00:00:00 2001 From: Roger Aiudi Date: Tue, 2 Feb 2021 14:21:50 -0500 Subject: [PATCH] Ignore failure to load thriftpy2 in coverage Signed-off-by: Roger Aiudi --- aiohappybase/connection.py | 2 +- aiohappybase/sync/connection.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aiohappybase/connection.py b/aiohappybase/connection.py index b66b2ca..3c4f15e 100644 --- a/aiohappybase/connection.py +++ b/aiohappybase/connection.py @@ -28,7 +28,7 @@ try: from thriftpy2_httpx_client import make_aio_client as make_http_client -except ImportError: +except ImportError: # pragma: no cover async def make_http_client(*_, **__): raise RuntimeError("thriftpy2_httpx_client is required to" " use the HTTP client protocol.") diff --git a/aiohappybase/sync/connection.py b/aiohappybase/sync/connection.py index 2be0a41..a751cdc 100644 --- a/aiohappybase/sync/connection.py +++ b/aiohappybase/sync/connection.py @@ -20,8 +20,8 @@ try: from thriftpy2_httpx_client import make_sync_client as make_http_client -except ImportError: - async def make_http_client(*_, **__): +except ImportError: # pragma: no cover + def make_http_client(*_, **__): raise RuntimeError("thriftpy2_httpx_client is required to" " use the HTTP client protocol.")