Skip test_logwarning on pytest versions older than 3.1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user