]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Auto skip async tests for imports
authorArmin Ronacher <armin.ronacher@active-4.com>
Wed, 28 Dec 2016 15:08:02 +0000 (16:08 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Wed, 28 Dec 2016 15:08:07 +0000 (16:08 +0100)
tests/test_async.py

index d593a2b2d3e7649a008f86dfb6f53ef3b2e14b4f..e21f7413bf5a5a0fa40f5a82c9a53a5ccb9b6db1 100644 (file)
@@ -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):