diff --git a/tests/test_datatype.py b/tests/test_datatype.py index 5fbe5dd2bb1fb5da4919741a9ed37055231ad1fa..196d13ba283452802fa5175a9b32cc53489a0ccf 100644 --- a/tests/test_datatype.py +++ b/tests/test_datatype.py @@ -204,4 +204,5 @@ def test_datatype_mismatch_in_response(): with raises(db.TransactionError) as exc: # should not raise ValueError but transaction error. rt.insert() - assert exc.value.get_errors()[0].msg == "Cannot parse value to double." + assert exc.value.get_errors()[0].get_errors( + )[0].msg == "Cannot parse value to double."