diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3-attrs/0001-test_funcs-skip-test_unknown-for-pytest-8.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3-attrs/0001-test_funcs-skip-test_unknown-for-pytest-8.patch | 30 |
1 files changed, 30 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 @@ | |||
1 | From cbe95e1aa6d95195dce13406a6f0522b2964babc Mon Sep 17 00:00:00 2001 | ||
2 | From: Tim Orling <tim.orling@konsulko.com> | ||
3 | Date: Fri, 16 Feb 2024 07:17:19 -0800 | ||
4 | Subject: [PATCH] test_funcs: skip test_unknown for pytest 8 | ||
5 | |||
6 | https://github.com/python-attrs/attrs/issues/1233 | ||
7 | |||
8 | Upstream-Status: Inappropriate [Test case needs to be properly fixed upstream] | ||
9 | |||
10 | Signed-off-by: Tim Orling <tim.orling@konsulko.com> | ||
11 | --- | ||
12 | tests/test_funcs.py | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/tests/test_funcs.py b/tests/test_funcs.py | ||
16 | index 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 | -- | ||
29 | 2.34.1 | ||
30 | |||