From 3b6bac2adf98aca0a05a201df7e40e26648c6982 Mon Sep 17 00:00:00 2001 From: Martin Winter Date: Sat, 26 Nov 2016 17:36:07 -0800 Subject: [PATCH] bgp_multiview_topo1: Change from unified to context diff for better readability --- .../topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py b/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py index 3f8523e997..b0834336d7 100755 --- a/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py +++ b/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py @@ -421,7 +421,9 @@ def test_bgp_routingTable(): actual = ('\n'.join(actual.splitlines()) + '\n').splitlines(1) # Generate Diff - diff = ''.join(difflib.unified_diff(actual, expected)) + diff = ''.join(difflib.context_diff(actual, expected, + fromfile="actual BGP routing table", + tofile="expected BGP routing table")) # Empty string if it matches, otherwise diff contains unified diff if diff: -- 2.39.5