diff --git a/tests/test_class_sh_basic.py b/tests/test_class_sh_basic.py index a78d503f8..5d75e4811 100644 --- a/tests/test_class_sh_basic.py +++ b/tests/test_class_sh_basic.py @@ -76,8 +76,7 @@ def test_pass_unique_ptr_disowns(rtrn_atyp, pass_atyp, rtrn): with pytest.raises(RuntimeError) as exc_info: m.pass_uqmp_atyp(obj) assert str(exc_info.value) == ( - "Missing value for wrapped C++ type:" - " Python instance was disowned." + "Missing value for wrapped C++ type: Python instance was disowned." ) diff --git a/tests/test_smart_ptr.py b/tests/test_smart_ptr.py index 592556c9a..d4e8e2e06 100644 --- a/tests/test_smart_ptr.py +++ b/tests/test_smart_ptr.py @@ -304,7 +304,8 @@ def test_smart_ptr_from_default(): m.HeldByDefaultHolder.load_shared_ptr(instance) assert str(excinfo.value) in ( "Unable to load a smart-pointer type from a non-smart_holder instance.", - "Unable to load a custom holder type from a default-holder instance") + "Unable to load a custom holder type from a default-holder instance", + ) def test_shared_ptr_gc():