From 91733ef85e0fb78866f477317d9079317c0d2925 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 9 Aug 2017 19:08:50 +0200 Subject: [PATCH] topotests: change from "context" to "unified" diff context diff: *** before.py --- tests/topotests/lib/topotest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index cabcc9a753..255839cf14 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -201,7 +201,7 @@ def pid_exists(pid): def get_textdiff(text1, text2, title1="", title2=""): "Returns empty string if same or formatted diff" - diff = '\n'.join(difflib.context_diff(text1, text2, + diff = '\n'.join(difflib.unified_diff(text1, text2, fromfile=title1, tofile=title2)) # Clean up line endings diff = os.linesep.join([s for s in diff.splitlines() if s]) -- 2.39.5