From 67d83e7e11ab72a5f0aa9dca2c050e8c82de8172 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 18 Jul 2018 10:47:06 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/metadata/author_mapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/metadata/author_mapper.py b/src/calibre/ebooks/metadata/author_mapper.py index efb46d586a..38996cb83f 100644 --- a/src/calibre/ebooks/metadata/author_mapper.py +++ b/src/calibre/ebooks/metadata/author_mapper.py @@ -134,7 +134,7 @@ def find_tests(): authors = [x.strip() for x in authors.split('&')] if isinstance(expected, type('')): expected = [x.strip() for x in expected.split('&')] - ans = map_authors(authors, rules) + ans = map_authors(authors, compile_rules(rules)) self.assertEqual(ans, expected) run(rule('capitalize', 't1&t2'), 't1&x1', 'T1&x1')