diff options
author | Julian Berman <Julian@GrayVines.com> | 2018-05-12 20:28:16 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2018-05-12 20:28:16 -0400 |
commit | aa804b212e1bcc3937f75bf0b092166d9e55b2b1 (patch) | |
tree | ea5447d0262c797bf5cb4b74c34485297165d10d | |
parent | a5c08091bd58dbd752e79c2261633b981a4e2c1a (diff) | |
download | jsonschema-aa804b212e1bcc3937f75bf0b092166d9e55b2b1.tar.gz |
Skip the newly added case-insensitive date-time tests.
See https://github.com/danielrichman/strict-rfc3339/issues/5
-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")) |