From c37319ccd7dd7a62efeeaee33affdcc05a704e5f Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sat, 16 Jun 2007 21:41:04 +0000 Subject: [PATCH] Ignore trailing (and leading) newlines in diff chunks. - Legacy-Id: 447 --- ietf/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/tests.py b/ietf/tests.py index 3327f5efe..c529c7de3 100644 --- a/ietf/tests.py +++ b/ietf/tests.py @@ -112,7 +112,7 @@ class UrlTestCase(TestCase): for item in os.listdir(testdir): path = testdir + "/" + item if item.startswith("generic-") and os.path.isfile(path): - chunk = filetext(path) + chunk = filetext(path).strip() chunk = re.sub(r"([\[\]().|+*?])", r"\\\1", chunk) # @@ -27,0 \+23,1 @@ chunk = re.sub(r"(?m)^@@ -\d+,(\d+) \\\+\d+,(\d+) @@$", r"@@ -\d+,\1 \+\d+,\2 @@", chunk)