Browse Source

[test] Corrected failing test

pull/90/head
Louis 9 years ago
parent
commit
ca2b74c90f
  1. 4
      patacrep/authors.py

4
patacrep/authors.py

@ -72,7 +72,7 @@ def split_sep_author(string, sep):
- sep: regexp matching a separator. - sep: regexp matching a separator.
>>> split_sep_author("Tintin and Milou", re.compile('^(.*) and (.*)$')) >>> split_sep_author("Tintin and Milou", re.compile('^(.*) and (.*)$'))
["Tintin", "Milou"] ['Tintin', 'Milou']
""" """
authors = [] authors = []
match = sep.match(string) match = sep.match(string)
@ -80,7 +80,7 @@ def split_sep_author(string, sep):
authors.append(match.group(2)) authors.append(match.group(2))
string = match.group(1) string = match.group(1)
match = sep.match(string) match = sep.match(string)
authors.append(string) authors.insert(0, string)
return authors return authors
################################################################################ ################################################################################

Loading…
Cancel
Save