mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 14:59:27 +00:00
fix test suite (pytest changes in ExceptionInfo class)
This commit is contained in:
@@ -272,7 +272,8 @@ def test_smart_ptr_from_default():
|
||||
instance = m.HeldByDefaultHolder()
|
||||
with pytest.raises(RuntimeError) as excinfo:
|
||||
m.HeldByDefaultHolder.load_shared_ptr(instance)
|
||||
assert "Unable to load a custom holder type from a default-holder instance" in str(excinfo)
|
||||
assert "Unable to load a custom holder type from a " \
|
||||
"default-holder instance" in str(excinfo.value)
|
||||
|
||||
|
||||
def test_shared_ptr_gc():
|
||||
|
||||
Reference in New Issue
Block a user