diff options
author | Dimitry <dimitry@ethereum.org> | 2018-11-20 02:28:33 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethereum.org> | 2018-11-20 02:28:33 +0800 |
commit | e091b9be7a31d1985e685991c05ea3f9b548bddc (patch) | |
tree | 287faa33d20d47a163e0b8088540f48544da9598 /test.py | |
parent | 03f578c27bf5a58ba8d88df4a01b5395470f7bfe (diff) | |
download | dexon-tests-consttransition.tar dexon-tests-consttransition.tar.gz dexon-tests-consttransition.tar.bz2 dexon-tests-consttransition.tar.lz dexon-tests-consttransition.tar.xz dexon-tests-consttransition.tar.zst dexon-tests-consttransition.zip |
fix blockchain tests expect section json scheme checkconsttransition
more info when scheme check errors
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -108,7 +108,12 @@ def validateSchema(testFile, schemaFile): try: jsonschema.validate(testInput, schema) except: + from jsonschema import Draft4Validator _logerror("Validation failed:", "schema", schemaFile, "on", testFile) + v = Draft4Validator(schema) + errors = sorted(v.iter_errors(testInput), key=lambda e: e.path) + for error in errors: + _logerror(error.message) def validateTestFile(testFile): if testFile.startswith("./src/VMTestsFiller/"): |