diff options
author | Julian Berman <Julian@GrayVines.com> | 2020-06-09 19:21:30 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2020-06-09 19:21:30 -0400 |
commit | c1fe75f7de1a64938fe2d98025c09d1f527c4518 (patch) | |
tree | 14c21bc78c045fe822c372629f78b69fe2e68d1f /jsonschema/tests | |
parent | 3f58e36754b3e2872a256874c1ffdd30c677f709 (diff) | |
download | jsonschema-c1fe75f7de1a64938fe2d98025c09d1f527c4518.tar.gz |
Add support for the comment field in upstream tests.
Handles the change from json-schema-org/JSON-Schema-Test-Suite#357.
Right now nothing is done with the comment (i.e. it's not shown
during test failures). Maybe later that'll change.
Diffstat (limited to 'jsonschema/tests')
-rw-r--r-- | jsonschema/tests/_suite.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jsonschema/tests/_suite.py b/jsonschema/tests/_suite.py index 5d3af33..bedf09b 100644 --- a/jsonschema/tests/_suite.py +++ b/jsonschema/tests/_suite.py @@ -169,6 +169,8 @@ class _Test(object): _remotes = attr.ib() + comment = attr.ib(default=None) + def __repr__(self): # pragma: no cover return "<Test {}>".format(self.fully_qualified_name) |