Skip to content

Commit

Permalink
- make travis-ci happy again...
Browse files Browse the repository at this point in the history
It got broken in commit 6a332bc
  • Loading branch information
marcus-h committed Jan 18, 2013
1 parent 6a332bc commit 178120c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_difffiles.py
Expand Up @@ -319,8 +319,8 @@ def __check_diff(self, p, exp, revision=None):
# TODO: Package.get_diff should return a consistent format
# (regardless of the used python version)
def __canonise_diff(diff):
diff = re.sub('^@@ -(\d+) ', '@@ -\\1,\\1 ', diff, re.MULTILINE)
diff = re.sub('^(@@ -\d+,\d+) \+(\d+) ', '\\1 +\\2,\\2 ', diff, re.MULTILINE)
diff = re.sub('^@@ -(\d+) ', '@@ -\\1,\\1 ', diff, flags=re.MULTILINE)
diff = re.sub('^(@@ -\d+,\d+) \+(\d+) ', '\\1 +\\2,\\2 ', diff, flags=re.MULTILINE)
return diff

got = __canonise_diff(got)
Expand Down

0 comments on commit 178120c

Please sign in to comment.