From 7ff260df6917438928c96f20949b68c010e3a487 Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Thu, 16 Jul 2020 10:40:56 +0200 Subject: [PATCH] BUG: Fix syntax --- tests/test_datatype.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/test_datatype.py b/tests/test_datatype.py index a996004..5fbe5dd 100644 --- a/tests/test_datatype.py +++ b/tests/test_datatype.py @@ -178,11 +178,10 @@ def test_wrong_refid(): value=rec2.id) with raises(db.TransactionError): rec3.insert() - except db.TransactionError: - desc = ('Reference not qualified. The value of this Reference ' - 'Property is to be a child of its data type.') - err = rec3.get_property("TestP1").get_errors()[0] - assert err.description == desc + desc = ('Reference not qualified. The value of this Reference ' + 'Property is to be a child of its data type.') + err = rec3.get_property("TestP1").get_errors()[0] + assert err.description == desc rec4 = db.Record().add_parent( name="TestRT3").add_property( -- GitLab