fix test suite (pytest changes in ExceptionInfo class)

This commit is contained in:
Wenzel Jakob
2019-07-06 16:57:17 +02:00
parent 8b90b1da62
commit 9fd4712121
4 changed files with 14 additions and 13 deletions

View File

@@ -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():