The have_quic determination broke when we switched to the
improved nanonameserver, and if aioquic was not installed then
the test_doq tests would fail instead of being skipped. We now
skip again in this situation.
import pytest
+import dns._features
import dns.asyncbackend
import dns.asyncquery
import dns.message
from .util import have_ipv4, have_ipv6, here
-have_quic = False
+have_quic = dns._features.have("doq")
try:
from .nanonameserver import Server
-
- have_quic = True
except ImportError:
pass
if not have_quic:
+
class Server(object):
pass