Overlooked flake8 fixes.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2021-02-09 15:57:59 -08:00
parent 7f176cba55
commit a07bf976bb
2 changed files with 3 additions and 3 deletions

View File

@ -76,8 +76,7 @@ def test_pass_unique_ptr_disowns(rtrn_atyp, pass_atyp, rtrn):
with pytest.raises(RuntimeError) as exc_info: with pytest.raises(RuntimeError) as exc_info:
m.pass_uqmp_atyp(obj) m.pass_uqmp_atyp(obj)
assert str(exc_info.value) == ( assert str(exc_info.value) == (
"Missing value for wrapped C++ type:" "Missing value for wrapped C++ type: Python instance was disowned."
" Python instance was disowned."
) )

View File

@ -304,7 +304,8 @@ def test_smart_ptr_from_default():
m.HeldByDefaultHolder.load_shared_ptr(instance) m.HeldByDefaultHolder.load_shared_ptr(instance)
assert str(excinfo.value) in ( assert str(excinfo.value) in (
"Unable to load a smart-pointer type from a non-smart_holder instance.", "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(): def test_shared_ptr_gc():