From ca2b74c90f8bff5c9be0a1089b39d22df9d10561 Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 15 Sep 2015 21:59:48 +0200 Subject: [PATCH] [test] Corrected failing test --- patacrep/authors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patacrep/authors.py b/patacrep/authors.py index e2c95b2d..8cde76cf 100644 --- a/patacrep/authors.py +++ b/patacrep/authors.py @@ -72,7 +72,7 @@ def split_sep_author(string, sep): - sep: regexp matching a separator. >>> split_sep_author("Tintin and Milou", re.compile('^(.*) and (.*)$')) - ["Tintin", "Milou"] + ['Tintin', 'Milou'] """ authors = [] match = sep.match(string) @@ -80,7 +80,7 @@ def split_sep_author(string, sep): authors.append(match.group(2)) string = match.group(1) match = sep.match(string) - authors.append(string) + authors.insert(0, string) return authors ################################################################################