summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2024-02-16 08:15:56 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-17 18:19:19 +0000
commit3b9dbfb5c6f9b51c747720d83ea8cb55e0615688 (patch)
treeea6a0117cdabd710f7eb351da3430c76c3b97d3e /meta/recipes-devtools/python
parent327930552e77518fa1610dec3f81b89eb92a329d (diff)
downloadpoky-3b9dbfb5c6f9b51c747720d83ea8cb55e0615688.tar.gz
python3-attrs: skip test failing with pytest-8
tests/test_funcs.py test_unknown test case is failing with pytest 8. Skip it for now until upstream has a fix. https://github.com/python-attrs/attrs/issues/1233 (From OE-Core rev: 5af87eda524bb0affe207c006f67b4191f6ce746) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3-attrs/0001-test_funcs-skip-test_unknown-for-pytest-8.patch30
-rw-r--r--meta/recipes-devtools/python/python3-attrs_23.2.0.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-attrs/0001-test_funcs-skip-test_unknown-for-pytest-8.patch b/meta/recipes-devtools/python/python3-attrs/0001-test_funcs-skip-test_unknown-for-pytest-8.patch
new file mode 100644
index 0000000000..bb69c0f157
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-attrs/0001-test_funcs-skip-test_unknown-for-pytest-8.patch
@@ -0,0 +1,30 @@
1From cbe95e1aa6d95195dce13406a6f0522b2964babc Mon Sep 17 00:00:00 2001
2From: Tim Orling <tim.orling@konsulko.com>
3Date: Fri, 16 Feb 2024 07:17:19 -0800
4Subject: [PATCH] test_funcs: skip test_unknown for pytest 8
5
6https://github.com/python-attrs/attrs/issues/1233
7
8Upstream-Status: Inappropriate [Test case needs to be properly fixed upstream]
9
10Signed-off-by: Tim Orling <tim.orling@konsulko.com>
11---
12 tests/test_funcs.py | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/tests/test_funcs.py b/tests/test_funcs.py
16index 044aaab..0872c31 100644
17--- a/tests/test_funcs.py
18+++ b/tests/test_funcs.py
19@@ -593,7 +593,7 @@ class TestAssoc:
20 for k, v in change_dict.items():
21 assert getattr(changed, k) == v
22
23- @given(simple_classes())
24+ @pytest.mark.skip('Broken with pytest 8. See https://github.com/python-attrs/attrs/issues/1233')
25 def test_unknown(self, C):
26 """
27 Wanting to change an unknown attribute raises an
28--
292.34.1
30
diff --git a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
index 7b6a6bd94c..cdd78c2bd9 100644
--- a/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
+++ b/meta/recipes-devtools/python/python3-attrs_23.2.0.bb
@@ -8,6 +8,7 @@ SRC_URI[sha256sum] = "935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19
8inherit pypi ptest python_hatchling 8inherit pypi ptest python_hatchling
9 9
10SRC_URI += " \ 10SRC_URI += " \
11 file://0001-test_funcs-skip-test_unknown-for-pytest-8.patch \
11 file://run-ptest \ 12 file://run-ptest \
12" 13"
13 14