From 4a105ef459fe5204d6218c4b2bdf8084ba5dc78c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 21 Jun 2013 16:40:47 +0530 Subject: [PATCH] ... --- src/calibre/db/tests/legacy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/db/tests/legacy.py b/src/calibre/db/tests/legacy.py index 48408d6105..af6b977aef 100644 --- a/src/calibre/db/tests/legacy.py +++ b/src/calibre/db/tests/legacy.py @@ -120,7 +120,8 @@ class LegacyTest(BaseTest): for attr in dir(db): if attr in SKIP_ATTRS: continue - self.assertTrue(hasattr(ndb, attr), 'The attribute %s is missing' % attr) + if not hasattr(ndb, attr): + raise AssertionError('The attribute %s is missing' % attr) obj, nobj = getattr(db, attr), getattr(ndb, attr) if attr not in SKIP_ARGSPEC: try: