diff options
Diffstat (limited to 'jsonschema/tests/test_format.py')
-rw-r--r-- | jsonschema/tests/test_format.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jsonschema/tests/test_format.py b/jsonschema/tests/test_format.py index f622265..5dd06cf 100644 --- a/jsonschema/tests/test_format.py +++ b/jsonschema/tests/test_format.py @@ -29,7 +29,8 @@ class TestFormatChecker(TestCase): def test_it_can_register_cls_checkers(self): original = dict(FormatChecker.checkers) self.addCleanup(FormatChecker.checkers.pop, "boom") - FormatChecker.cls_checks("boom")(boom) + with self.assertWarns(DeprecationWarning): + FormatChecker.cls_checks("boom")(boom) self.assertEqual( FormatChecker.checkers, dict(original, boom=(boom, ())), |