File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -880,10 +880,6 @@ def test_invalid_properties(self):
880
880
with self .assertRaises (SchemaError ):
881
881
self .Validator .check_schema ({"properties" : {"test" : object ()}})
882
882
883
- def test_invalid_pattern (self ):
884
- with self .assertRaises (SchemaError ):
885
- self .Validator .check_schema ({"pattern" : "\q" })
886
-
887
883
def test_minItems_invalid_string (self ):
888
884
with self .assertRaises (SchemaError ):
889
885
# needs to be an integer
@@ -896,6 +892,10 @@ def test_invalid_patternProperty(self):
896
892
self .Validator .check_schema (
897
893
{"patternProperties" :{"\q" : {"type" : "number" }}})
898
894
895
+ def test_invalid_pattern (self ):
896
+ with self .assertRaises (SchemaError ):
897
+ self .Validator .check_schema ({"pattern" : "\q" })
898
+
899
899
900
900
class TestDraft6InvalidRegex (InvalidRegexMixin , TestCase ):
901
901
Validator = validators .Draft6Validator
You can’t perform that action at this time.
0 commit comments