From 07b40cbbf4fd58a8e592c836ffbc2115d9f1cb69 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 16 Jun 2020 16:58:44 -0700 Subject: [PATCH] avoid unneeded coverage warnings --- dns/query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/query.py b/dns/query.py index c084d79a..3c4bba09 100644 --- a/dns/query.py +++ b/dns/query.py @@ -41,11 +41,11 @@ try: from requests_toolbelt.adapters.host_header_ssl import HostHeaderSSLAdapter have_doh = True except ImportError: - have_doh = False + have_doh = False # pragma: no cover try: import ssl -except ImportError: +except ImportError: # pragma: no cover class ssl: # type: ignore class WantReadException(Exception): -- 2.47.3