You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/picobox/files/picobox-2.2.0-fix-py3.10.patch

27 lines
974 B

diff --git a/tests/test_box.py b/tests/test_box.py
index c1c1ca2..d576086 100644
--- a/tests/test_box.py
+++ b/tests/test_box.py
@@ -402,7 +402,7 @@ def test_box_pass_unexpected_argument(boxclass):
with pytest.raises(TypeError) as excinfo:
fn(1, 2)
- assert str(excinfo.value) == "fn() got an unexpected keyword argument 'd'"
+ assert "fn() got an unexpected keyword argument 'd'" in str(excinfo.value)
def test_box_pass_keyerror(boxclass):
diff --git a/tests/test_stack.py b/tests/test_stack.py
index 725d378..10129b3 100644
--- a/tests/test_stack.py
+++ b/tests/test_stack.py
@@ -472,7 +472,7 @@ def test_box_pass_unexpected_argument(boxclass, teststack):
with pytest.raises(TypeError) as excinfo:
fn(1, 2)
- assert str(excinfo.value) == "fn() got an unexpected keyword argument 'd'"
+ assert "fn() got an unexpected keyword argument 'd'" in str(excinfo.value)
def test_box_pass_keyerror(boxclass, teststack):