From dec8572513de07cc389bf5cf3ec9559a8ed92e7b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 24 Jul 2013 12:55:15 +0530 Subject: [PATCH] ... --- src/calibre/db/tests/reading.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/db/tests/reading.py b/src/calibre/db/tests/reading.py index cfb9597550..c242206539 100644 --- a/src/calibre/db/tests/reading.py +++ b/src/calibre/db/tests/reading.py @@ -479,9 +479,10 @@ class ReadingTest(BaseTest): 'Standard field format: %s not the same for book %s' % (field, book_id)) def f(x): try: - return x['label'] + x.pop('rec_index', None) except: - return x + pass + return x if field not in {'#series_index'}: v = pmi.get_standard_metadata(field) self.assertTrue(v is None or isinstance(v, dict))