From: Armin Ronacher Date: Wed, 28 Dec 2016 15:08:02 +0000 (+0100) Subject: Auto skip async tests for imports X-Git-Tag: 2.9~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c9ebf16e5a625351e67134f85b78aa6a26aa0a8;p=thirdparty%2Fjinja.git Auto skip async tests for imports --- 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):