From: Thomas Jarosch Date: Fri, 3 Jul 2015 15:24:14 +0000 (+0200) Subject: Unit test: Fix _equal_stat_dicts() invocation X-Git-Tag: v2.2~44 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=5200d2aa1ec78cccc8ea1236420a6a09265919f8;p=python-delta-tar Unit test: Fix _equal_stat_dicts() invocation The jsonize_path_iterator() generator returns a tuple with the wanted dictionary as the first element. --- diff --git a/testing/test_deltatar.py b/testing/test_deltatar.py index 20c6397..3a46ccc 100644 --- a/testing/test_deltatar.py +++ b/testing/test_deltatar.py @@ -1337,10 +1337,10 @@ class DeltaTarTest(BaseTest): except StopIteration: break try: - assert deltatar._equal_stat_dicts(sitem, titem) + assert deltatar._equal_stat_dicts(sitem[0], titem[0]) except Exception as e: - print(sitem) - print(titem) + print("SITEM: " + str(sitem)) + print("TITEM: " + str(titem)) raise e class DeltaTar2Test(DeltaTarTest):