Fix tests for pytest features branch

This commit is contained in:
Bruno Oliveira
2019-11-04 16:21:13 -03:00
parent f7e7d87ecf
commit 0c53761e95

View File

@@ -784,7 +784,7 @@ class TestWarnings:
) )
) )
result = testdir.runpytest(n) result = testdir.runpytest(n)
result.stdout.fnmatch_lines(["*this is a warning*", "*1 passed, 1 warnings*"]) result.stdout.fnmatch_lines(["*this is a warning*", "*1 passed, 1 warning*"])
@pytest.mark.parametrize("n", ["-n0", "-n1"]) @pytest.mark.parametrize("n", ["-n0", "-n1"])
def test_custom_subclass(self, testdir, n): def test_custom_subclass(self, testdir, n):
@@ -808,7 +808,7 @@ class TestWarnings:
) )
testdir.syspathinsert() testdir.syspathinsert()
result = testdir.runpytest(n) result = testdir.runpytest(n)
result.stdout.fnmatch_lines(["*MyWarning*", "*1 passed, 1 warnings*"]) result.stdout.fnmatch_lines(["*MyWarning*", "*1 passed, 1 warning*"])
@pytest.mark.parametrize("n", ["-n0", "-n1"]) @pytest.mark.parametrize("n", ["-n0", "-n1"])
def test_unserializable_arguments(self, testdir, n): def test_unserializable_arguments(self, testdir, n):
@@ -825,7 +825,7 @@ class TestWarnings:
) )
testdir.syspathinsert() testdir.syspathinsert()
result = testdir.runpytest(n) result = testdir.runpytest(n)
result.stdout.fnmatch_lines(["*UserWarning*foo.txt*", "*1 passed, 1 warnings*"]) result.stdout.fnmatch_lines(["*UserWarning*foo.txt*", "*1 passed, 1 warning*"])
@pytest.mark.parametrize("n", ["-n0", "-n1"]) @pytest.mark.parametrize("n", ["-n0", "-n1"])
def test_unserializable_warning_details(self, testdir, n): def test_unserializable_warning_details(self, testdir, n):
@@ -857,7 +857,7 @@ class TestWarnings:
testdir.syspathinsert() testdir.syspathinsert()
result = testdir.runpytest(n) result = testdir.runpytest(n)
result.stdout.fnmatch_lines( result.stdout.fnmatch_lines(
["*ResourceWarning*unclosed*", "*1 passed, 1 warnings*"] ["*ResourceWarning*unclosed*", "*1 passed, 1 warning*"]
) )