From a07bf976bb32baf005cf3f3a45229fa1fd4502b4 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 9 Feb 2021 15:57:59 -0800 Subject: [PATCH] Overlooked flake8 fixes. --- tests/test_class_sh_basic.py | 3 +-- tests/test_smart_ptr.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) 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():