-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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. python-attrs/attrs#1233 Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...ecipes-devtools/python/python3-attrs/0001-test_funcs-skip-test_unknown-for-pytest-8.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From cbe95e1aa6d95195dce13406a6f0522b2964babc Mon Sep 17 00:00:00 2001 | ||
From: Tim Orling <tim.orling@konsulko.com> | ||
Date: Fri, 16 Feb 2024 07:17:19 -0800 | ||
Subject: [PATCH] test_funcs: skip test_unknown for pytest 8 | ||
|
||
https://github.com/python-attrs/attrs/issues/1233 | ||
|
||
Upstream-Status: Inappropriate [Test case needs to be properly fixed upstream] | ||
|
||
Signed-off-by: Tim Orling <tim.orling@konsulko.com> | ||
--- | ||
tests/test_funcs.py | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/tests/test_funcs.py b/tests/test_funcs.py | ||
index 044aaab..0872c31 100644 | ||
--- a/tests/test_funcs.py | ||
+++ b/tests/test_funcs.py | ||
@@ -593,7 +593,7 @@ class TestAssoc: | ||
for k, v in change_dict.items(): | ||
assert getattr(changed, k) == v | ||
|
||
- @given(simple_classes()) | ||
+ @pytest.mark.skip('Broken with pytest 8. See https://github.com/python-attrs/attrs/issues/1233') | ||
def test_unknown(self, C): | ||
""" | ||
Wanting to change an unknown attribute raises an | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters