From 1c9ebf16e5a625351e67134f85b78aa6a26aa0a8 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 28 Dec 2016 16:08:02 +0100 Subject: [PATCH] Auto skip async tests for imports --- tests/test_async.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_async.py b/tests/test_async.py index d593a2b2..e21f7413 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -99,6 +99,7 @@ def test_env_async(): return env +@pytest.mark.skipif(not have_async_gen, reason='No async generators') @pytest.mark.imports class TestAsyncImports(object): @@ -146,6 +147,7 @@ class TestAsyncImports(object): assert not hasattr(m, 'notthere') +@pytest.mark.skipif(not have_async_gen, reason='No async generators') @pytest.mark.imports @pytest.mark.includes class TestAsyncIncludes(object): -- 2.47.2