From a638b8d7f640393609045ad16f4c809441ea6c0b Mon Sep 17 00:00:00 2001 From: Eduardo Robles Elvira Date: Fri, 27 Sep 2013 16:06:37 +0200 Subject: [PATCH] when a comparison of two json paths in test_deltatar fails, show the two of them in console, this is quite handy --- testing/test_deltatar.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/testing/test_deltatar.py b/testing/test_deltatar.py index 8bd8a52..45d9968 100644 --- a/testing/test_deltatar.py +++ b/testing/test_deltatar.py @@ -1228,7 +1228,12 @@ class DeltaTarTest(BaseTest): raise Exception("iterators do not stop at the same time") except StopIteration: break - assert deltatar._equal_stat_dicts(sitem, titem) + try: + assert deltatar._equal_stat_dicts(sitem, titem) + except Exception, e: + print sitem + print titem + raise e class DeltaTar2Test(DeltaTarTest): ''' -- 1.7.1