From c31ec8b222effc34e3a6a08e7ee607a18fb56882 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 9 Aug 2017 07:57:39 -0300 Subject: [PATCH] Skip test_logwarning on pytest versions older than 3.1 --- testing/acceptance_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index ae02723..7349273 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -340,6 +340,7 @@ class TestTerminalReporting: ]) @pytest.mark.parametrize('n', ['-n0', '-n1']) + @pytest.mark.skipif(pytest.__version__ < "3.1", reason='pytest warnings requires >= 3.1') def test_logwarning(self, testdir, n): testdir.makepyfile(""" import warnings