From 5200d2aa1ec78cccc8ea1236420a6a09265919f8 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Fri, 3 Jul 2015 17:24:14 +0200 Subject: [PATCH] Unit test: Fix _equal_stat_dicts() invocation The jsonize_path_iterator() generator returns a tuple with the wanted dictionary as the first element. --- testing/test_deltatar.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) 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): -- 1.7.1