diff --git a/tests/test_schema.py b/tests/test_schema.py index c39a0180..fb51e0dc 100644 --- a/tests/test_schema.py +++ b/tests/test_schema.py @@ -226,5 +226,5 @@ class ValidateAssignmentSchema(Schema): assert schema_inst.str_var == "reassigned_value" try: schema_inst.str_var = 5 - except ValidationError: - raise AssertionError() + except ValidationError as ve: + raise AssertionError() from ve