changeset 128:8dd29564cfb2

forget assert, allow multiple failures
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Thu, 28 Sep 2023 16:10:05 +0100
parents 9c63ff510cc9
children 83a574b570a6
files lib/python/cc/lmh/test/test_keys.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/python/cc/lmh/test/test_keys.py	Thu Sep 28 16:09:38 2023 +0100
+++ b/lib/python/cc/lmh/test/test_keys.py	Thu Sep 28 16:10:05 2023 +0100
@@ -7,8 +7,12 @@
 
 with open(os.path.join(os.path.dirname(__file__),
                        'key_tests.tsv'),'r') as f:
+  i = 0
   for l in f:
+    i+=1
     u, k = l.split()
     kk = cdx_key(u)
-    assert kk == k, "\n%s should be\n%s\nfrom %s"%(kk,k,u)
+    if kk == k:
+      continue
+    print("Test %s failed:\n%s should be\n%s\nfrom %s"%(i,kk,k,u))