when a comparison of two json paths in test_deltatar fails, show the two of them...
authorEduardo Robles Elvira <edulix@wadobo.com>
Fri, 27 Sep 2013 14:06:37 +0000 (16:06 +0200)
committerEduardo Robles Elvira <edulix@wadobo.com>
Fri, 27 Sep 2013 14:06:37 +0000 (16:06 +0200)
testing/test_deltatar.py

index 8bd8a52..45d9968 100644 (file)
@@ -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):
     '''