From: Bob Halley Date: Tue, 16 Jun 2020 23:58:44 +0000 (-0700) Subject: avoid unneeded coverage warnings X-Git-Tag: v2.0.0rc1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07b40cbbf4fd58a8e592c836ffbc2115d9f1cb69;p=thirdparty%2Fdnspython.git avoid unneeded coverage warnings --- 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):