diff options
-rw-r--r-- | jsonschema/tests/test_jsonschema_test_suite.py | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/jsonschema/tests/test_jsonschema_test_suite.py b/jsonschema/tests/test_jsonschema_test_suite.py index 3dfe57f..241618e 100644 --- a/jsonschema/tests/test_jsonschema_test_suite.py +++ b/jsonschema/tests/test_jsonschema_test_suite.py @@ -161,7 +161,14 @@ else: ) @load_json_cases( tests=DRAFT3.optional_tests_of(name="format"), - skip=missing_format(draft3_format_checker), + skip=lambda test: ( + missing_format(draft3_format_checker)(test) or + skip_tests_containing_descriptions( + { + "case-insensitive T and Z": "Upstream bug in strict_rfc3339", + }, + )(test) + ), ) @load_json_cases(tests=DRAFT3.optional_tests_of(name="bignum")) @load_json_cases(tests=DRAFT3.optional_tests_of(name="zeroTerminatedFloats")) @@ -197,7 +204,14 @@ class TestDraft3(unittest.TestCase, TypesMixin, DecimalMixin, FormatMixin): ) @load_json_cases( tests=DRAFT4.optional_tests_of(name="format"), - skip=missing_format(draft4_format_checker), + skip=lambda test: ( + missing_format(draft4_format_checker)(test) or + skip_tests_containing_descriptions( + { + "case-insensitive T and Z": "Upstream bug in strict_rfc3339", + }, + )(test) + ), ) @load_json_cases(tests=DRAFT4.optional_tests_of(name="bignum")) @load_json_cases(tests=DRAFT4.optional_tests_of(name="zeroTerminatedFloats")) |