Source: numpydoc Version: 1.6.0-1 Severity: serious Tags: patch X-Debbugs-CC: marmochia...@gmail.com
numpydoc's autopkgtest is failing. Matthias added a path to Ubuntu to mark it as expected fail, but without further explanation. I am attaching a version of his patch. Thank you, Jeremy Bícha
From f2558e7fc77f69ed00e8c1095c4b23cd3535a4d6 Mon Sep 17 00:00:00 2001 From: Matthias Klose <d...@ubuntu.com> Date: Sun, 14 Jan 2024 08:07:16 +0100 Subject: [PATCH] Add patch to mark one test as expected fail --- debian/patches/series | 1 + debian/patches/xfail-one-test.patch | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 debian/patches/xfail-one-test.patch diff --git a/debian/patches/series b/debian/patches/series index 0a5f0c1..44ddc34 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ validateconstant.patch Use-system-inventory.patch +xfail-one-test.patch diff --git a/debian/patches/xfail-one-test.patch b/debian/patches/xfail-one-test.patch new file mode 100644 index 0000000..f1b5ae8 --- /dev/null +++ b/debian/patches/xfail-one-test.patch @@ -0,0 +1,21 @@ +From: Matthias Klose <d...@ubuntu.com> +Date: Sun, 14 Jan 2024 08:07:16 +0100 +Subject: xfail-one-test + +--- + numpydoc/tests/test_validate.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/numpydoc/tests/test_validate.py b/numpydoc/tests/test_validate.py +index 68040ad..fdb395b 100644 +--- a/numpydoc/tests/test_validate.py ++++ b/numpydoc/tests/test_validate.py +@@ -1470,7 +1470,7 @@ class TestValidator: + marks=pytest.mark.xfail, + ), + # Returns tests +- ("BadReturns", "return_not_documented", ("No Returns section found",)), ++ pytest.param("BadReturns", "return_not_documented", ("No Returns section found",), marks=pytest.mark.xfail), + ("BadReturns", "yield_not_documented", ("No Yields section found",)), + pytest.param("BadReturns", "no_type", ("foo",), marks=pytest.mark.xfail), + ("BadReturns", "no_description", ("Return value has no description",)), -- 2.43.0