Skip test_logwarning on pytest versions older than 3.1

This commit is contained in:
Bruno Oliveira
2017-08-09 07:57:39 -03:00
parent d0474076e9
commit c31ec8b222

View File

@@ -340,6 +340,7 @@ class TestTerminalReporting:
]) ])
@pytest.mark.parametrize('n', ['-n0', '-n1']) @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): def test_logwarning(self, testdir, n):
testdir.makepyfile(""" testdir.makepyfile("""
import warnings import warnings