diff options
author | Julian Berman <Julian@GrayVines.com> | 2023-02-22 15:42:38 +0200 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2023-02-22 15:42:38 +0200 |
commit | 8c4cd7c52ef783c3f0aa1c15342e5c8c9d4360f5 (patch) | |
tree | 7a8cc0374b422ff39497c178567ae26cb4c08de7 /jsonschema | |
parent | 34d19dc706a1d57640e6f84333500e5f734dbf9a (diff) | |
download | jsonschema-8c4cd7c52ef783c3f0aa1c15342e5c8c9d4360f5.tar.gz |
These pass now actually.
Closes: #523
Diffstat (limited to 'jsonschema')
-rw-r--r-- | jsonschema/tests/test_validators.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/jsonschema/tests/test_validators.py b/jsonschema/tests/test_validators.py index c62498b..c21d71f 100644 --- a/jsonschema/tests/test_validators.py +++ b/jsonschema/tests/test_validators.py @@ -1789,18 +1789,14 @@ class AntiDraft6LeakMixin: self.Validator.check_schema(False) self.assertIn("False is not of type", str(e.exception)) - @unittest.skip(bug(523)) def test_True_is_not_a_schema_even_if_you_forget_to_check(self): - resolver = validators._RefResolver("", {}) with self.assertRaises(Exception) as e: - self.Validator(True, resolver=resolver).validate(12) + self.Validator(True).validate(12) self.assertNotIsInstance(e.exception, exceptions.ValidationError) - @unittest.skip(bug(523)) def test_False_is_not_a_schema_even_if_you_forget_to_check(self): - resolver = validators._RefResolver("", {}) with self.assertRaises(Exception) as e: - self.Validator(False, resolver=resolver).validate(12) + self.Validator(False).validate(12) self.assertNotIsInstance(e.exception, exceptions.ValidationError) |