mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 09:25:51 +00:00
Overlooked flake8 fixes.
This commit is contained in:
parent
7f176cba55
commit
a07bf976bb
@ -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."
|
||||
)
|
||||
|
||||
|
||||
|
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user