From 203a4eeab5191866105961e3b7c0c6099a0f6ec0 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Fri, 18 Jan 2013 16:37:08 +0100 Subject: [PATCH] - tests.test_difffiles: added TODO to __canonise_diff. --- tests/test_difffiles.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_difffiles.py b/tests/test_difffiles.py index 51b4b1fb..fc421601 100644 --- a/tests/test_difffiles.py +++ b/tests/test_difffiles.py @@ -315,6 +315,9 @@ Binary file 'binary' has changed. # # so we need to canonise the output to avoid false negative # test failures. + + # 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, 0, re.MULTILINE) diff = re.sub('^(@@ -\d+,\d+) \+(\d+) ', '\\1 +\\2,\\2 ', diff, 0, re.MULTILINE)