Drop support to old pytest versions and test with python 3.7

This commit is contained in:
Bruno Oliveira
2018-11-10 19:31:38 -02:00
parent 74a5e0ca03
commit f9a13fe53b
8 changed files with 35 additions and 54 deletions

View File

@@ -708,16 +708,6 @@ def test_sub_plugins_disabled(testdir, plugin):
class TestWarnings:
@pytest.fixture(autouse=True)
def skip_if_unsupported_pytest_version(self):
"""Skip tests of this class if we are running in a pytest version which does not
support warnings yet.
"""
from pkg_resources import parse_version
if parse_version(pytest.__version__) < parse_version("3.1"):
pytest.skip("pytest warnings requires >= 3.1")
@pytest.mark.parametrize("n", ["-n0", "-n1"])
@pytest.mark.parametrize("warn_type", ["pytest", "builtin"])
def test_warnings(self, testdir, n, warn_type):