1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
From: Michael R. Crusoe <michael.crusoe@gmail.com>
Subject: Adapt test for post-installation usage
Forwarded: not-needed
--- python-schema-salad.orig/schema_salad/tests/test_print_oneline.py
+++ python-schema-salad/schema_salad/tests/test_print_oneline.py
@@ -176,10 +176,9 @@
)
except ValidationException as e:
msg = str(e)
+ print("\n", e)
assert (
- msg.endswith("expected <block end>, but found ':'")
- or msg.endswith("expected <block end>, but found u':'")
- or re.search(r"mapping with\s+implicit\s+null key$", msg, re.M)
+ re.search(r"expected\s+<block\s+end>,\s+but\s+found", msg, re.M)
+ or re.search(r"mapping with\s+implicit\s+null key", msg, re.M)
)
- print("\n", e)
raise
|