From 178120c99e0b2fa7c158f589b4781c4b772fed45 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Fri, 18 Jan 2013 18:12:41 +0100 Subject: [PATCH] - make travis-ci happy again... It got broken in commit 6a332bc1c651b1555a5891f0a7db07795f4602ca --- tests/test_difffiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_difffiles.py b/tests/test_difffiles.py index 544802ffc..c59d5c13d 100644 --- a/tests/test_difffiles.py +++ b/tests/test_difffiles.py @@ -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)