summaryrefslogtreecommitdiff
path: root/jsonschema/tests/test_exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'jsonschema/tests/test_exceptions.py')
-rw-r--r--jsonschema/tests/test_exceptions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/jsonschema/tests/test_exceptions.py b/jsonschema/tests/test_exceptions.py
index b3f176d..2014a64 100644
--- a/jsonschema/tests/test_exceptions.py
+++ b/jsonschema/tests/test_exceptions.py
@@ -149,7 +149,8 @@ class TestBestMatch(unittest.TestCase):
validator = Draft4Validator({"minProperties" : 2})
error, = validator.iter_errors({})
self.assertEqual(
- exceptions.best_match(validator.iter_errors({})), error,
+ exceptions.best_match(validator.iter_errors({})).validator,
+ "minProperties",
)
def test_no_errors(self):