[Python-modules-commits] [python-pyld] 185/276: Remove unused compare function.

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 8 23:48:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository python-pyld.

commit 13bc41ba70d453234757226136ade2415a1ab3b0
Author: Dave Longley <dlongley at digitalbazaar.com>
Date:   Tue Sep 10 12:34:49 2013 -0400

    Remove unused compare function.
---
 tests/runtests.py | 26 --------------------------
 1 file changed, 26 deletions(-)

diff --git a/tests/runtests.py b/tests/runtests.py
index fe500cb..74360bf 100644
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -395,32 +395,6 @@ class EarlReport():
             f.write(json.dumps(self.report, indent=2))
             f.close()
 
-# remove?
-def deep_compare(expect, result):
-    if isinstance(expect, list):
-        if not isinstance(result, list):
-            return False
-        if len(expect) != len(result):
-            return False
-        for a, b in zip(expect, result):
-            if not deep_compare(a, b):
-                return False
-        return True
-
-    if isinstance(expect, dict):
-        if not isinstance(result, dict):
-            return False
-        if len(expect) != len(result):
-            return False
-        for k, v in expect.items():
-            if k not in result:
-                return False
-            if not deep_compare(v, result[k]):
-                return False
-        return True
-
-    return expect == result
-
 
 # supported test types
 TEST_TYPES = {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pyld.git



More information about the Python-modules-commits mailing list