From e54625a320ed3be96f4927c9902ddcf3464e3a66 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 23 Apr 2013 15:57:47 +0530 Subject: [PATCH] Fix test_get_property to ignore series_sort when lang is not eng --- src/calibre/db/tests/legacy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/calibre/db/tests/legacy.py b/src/calibre/db/tests/legacy.py index 7c9385f8df..353e1bc4b5 100644 --- a/src/calibre/db/tests/legacy.py +++ b/src/calibre/db/tests/legacy.py @@ -51,6 +51,11 @@ class LegacyTest(BaseTest): if label in {'tags', 'formats'}: # Order is random in the old db for these ans[label] = tuple(set(x.split(',')) if x else x for x in ans[label]) + if label == 'series_sort': + # The old db code did not take book language into account + # when generating series_sort values (the first book has + # lang=deu) + ans[label] = ans[label][1:] return ans old = self.init_old()