From d620a79ebd590c5864656bd4bbca043e99809454 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Thu, 6 Dec 2018 18:23:11 -0500 Subject: Allow TestCmd.diff() to accept lists as well as strings --- testing/framework/TestCmd.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/testing/framework/TestCmd.py b/testing/framework/TestCmd.py index cccbccb..35e3613 100644 --- a/testing/framework/TestCmd.py +++ b/testing/framework/TestCmd.py @@ -1093,7 +1093,13 @@ class TestCmd(object): diff_function = self.simple_diff if name is not None: print(self.banner(name)) - args = (a.splitlines(), b.splitlines()) + args + + if not is_List(a): + a=a.splitlines() + if not is_List(b): + b=b.splitlines() + + args = (a, b) + args for line in diff_function(*args, **kw): print(line) -- cgit v0.12