From: Eduardo Robles Elvira Date: Fri, 27 Sep 2013 14:06:37 +0000 (+0200) Subject: when a comparison of two json paths in test_deltatar fails, show the two of them... X-Git-Tag: v2.2~96 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=a638b8d7f640393609045ad16f4c809441ea6c0b;p=python-delta-tar when a comparison of two json paths in test_deltatar fails, show the two of them in console, this is quite handy --- 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): '''