diff options
| author | Bob Halley <halley@dnspython.org> | 2021-12-21 07:59:09 -0800 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2021-12-21 07:59:28 -0800 |
| commit | 7b714f6f410ee526924ef2f27979dee05e40ee4c (patch) | |
| tree | 39362fc7ee51ca7344cf2a2ffb99e55a38e77955 | |
| parent | 72348d4698a8f8b209fbdf9e72738904ad31b930 (diff) | |
| download | dnspython-2.2.0rc1.tar.gz | |
skip async DoH tests if no httpxv2.2.0rc1
(cherry picked from commit ec5bee76861f3da38dd6b72f01c28ea888a346c8)
| -rw-r--r-- | tests/test_async.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_async.py b/tests/test_async.py index c7425e6..4759b02 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -428,6 +428,7 @@ class AsyncTests(unittest.TestCase): self.async_run(arun) self.assertRaises(dns.exception.Timeout, run) + @unittest.skipIf(not dns.query._have_httpx, "httpx not available") def testDOHGetRequest(self): if self.backend.name() == 'curio': self.skipTest('anyio dropped curio support') @@ -439,6 +440,7 @@ class AsyncTests(unittest.TestCase): self.assertTrue(q.is_response(r)) self.async_run(run) + @unittest.skipIf(not dns.query._have_httpx, "httpx not available") def testDOHGetRequestHttp1(self): if self.backend.name() == 'curio': self.skipTest('anyio dropped curio support') @@ -455,6 +457,7 @@ class AsyncTests(unittest.TestCase): dns.query._have_http2 = saved_have_http2 self.async_run(run) + @unittest.skipIf(not dns.query._have_httpx, "httpx not available") def testDOHPostRequest(self): if self.backend.name() == 'curio': self.skipTest('anyio dropped curio support') @@ -466,7 +469,8 @@ class AsyncTests(unittest.TestCase): self.assertTrue(q.is_response(r)) self.async_run(run) - def test_resolver_doh(self): + @unittest.skipIf(not dns.query._have_httpx, "httpx not available") + def testResolverDOH(self): if self.backend.name() == 'curio': self.skipTest('anyio dropped curio support') async def run(): |
