summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2018-05-12 20:28:16 -0400
committerJulian Berman <Julian@GrayVines.com>2018-05-12 20:28:16 -0400
commitaa804b212e1bcc3937f75bf0b092166d9e55b2b1 (patch)
treeea5447d0262c797bf5cb4b74c34485297165d10d
parenta5c08091bd58dbd752e79c2261633b981a4e2c1a (diff)
downloadjsonschema-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.py18
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"))