From f6808a96e0294c5eaa051d0ae33916ac56193761 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 28 Jul 2019 20:40:32 +0200 Subject: [PATCH] Skip pre python 3.5 --- conftest.py | 8 ++++++++ test/test_evaluate/test_signature.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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): ...