diff --git a/conftest.py b/conftest.py index 3c1b1d79..765c865c 100644 --- a/conftest.py +++ b/conftest.py @@ -148,3 +148,11 @@ def skip_pre_python37(environment): # This if is just needed to avoid that tests ever skip way more than # they should for all Python versions. pytest.skip() + + +@pytest.fixture() +def skip_pre_python35(environment): + if environment.version_info < (3, 5): + # This if is just needed to avoid that tests ever skip way more than + # they should for all Python versions. + pytest.skip() diff --git a/test/test_evaluate/test_signature.py b/test/test_evaluate/test_signature.py index 101bb6d3..49a17dd3 100644 --- a/test/test_evaluate/test_signature.py +++ b/test/test_evaluate/test_signature.py @@ -137,7 +137,7 @@ def test_tree_signature(Script, environment, code, expected): ('no_redirect(simple)', '*args, **kwargs'), ] ) -def test_nested_signatures(Script, environment, combination, expected): +def test_nested_signatures(Script, environment, combination, expected, skip_pre_python35): code = dedent(''' def simple(a, b, *, c): ... def simple2(x): ...