aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pytest-xdist/fix-acceptance-tests.patch
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2019-11-22 21:04:17 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2019-11-22 21:05:02 +0000
commit048edcc19c3887cb4ab5673b72e1679a3a66e77c (patch)
tree7128c7cb1c9ebfb30d2fbb2c7ab4251d1cc8c27e /community/py3-pytest-xdist/fix-acceptance-tests.patch
parent5c8b57cbc5cd3c426ead8571e5d1c93dcea2dc36 (diff)
downloadaports-048edcc19c3887cb4ab5673b72e1679a3a66e77c.tar.bz2
aports-048edcc19c3887cb4ab5673b72e1679a3a66e77c.tar.xz
community/py3-pytest-xdist: fix acceptance tests
A couple of tests failed due to changes in plularition in the output against what was matched.
Diffstat (limited to 'community/py3-pytest-xdist/fix-acceptance-tests.patch')
-rw-r--r--community/py3-pytest-xdist/fix-acceptance-tests.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/py3-pytest-xdist/fix-acceptance-tests.patch b/community/py3-pytest-xdist/fix-acceptance-tests.patch
new file mode 100644
index 0000000000..5d039862e7
--- /dev/null
+++ b/community/py3-pytest-xdist/fix-acceptance-tests.patch
@@ -0,0 +1,40 @@
+diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py
+index 4537fd0bed..e3a6f5b73c 100644
+--- a/testing/acceptance_test.py
++++ b/testing/acceptance_test.py
+@@ -784,7 +784,7 @@ class TestWarnings:
+ )
+ )
+ 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"])
+ def test_custom_subclass(self, testdir, n):
+@@ -808,7 +808,7 @@ class TestWarnings:
+ )
+ testdir.syspathinsert()
+ 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"])
+ def test_unserializable_arguments(self, testdir, n):
+@@ -825,7 +825,7 @@ class TestWarnings:
+ )
+ testdir.syspathinsert()
+ 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"])
+ def test_unserializable_warning_details(self, testdir, n):
+@@ -857,7 +857,7 @@ class TestWarnings:
+ testdir.syspathinsert()
+ result = testdir.runpytest(n)
+ result.stdout.fnmatch_lines(
+- ["*ResourceWarning*unclosed*", "*1 passed, 1 warnings*"]
++ ["*ResourceWarning*unclosed*", "*1 passed, 1 warning*"]
+ )
+
+