mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 01:16:14 +01:00
- tests.test_difffiles: added TODO to __canonise_diff.
This commit is contained in:
parent
ef0f24c2f6
commit
203a4eeab5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user