@@ -26,6 +26,11 @@ def skipper(test):
26
26
return skipper
27
27
28
28
29
+ def ecmascript_regex (test ):
30
+ if test .subject == "ecmascript-regex" :
31
+ return "ECMA regex support will be added in #1142."
32
+
33
+
29
34
def missing_format (Validator ):
30
35
def missing_format (test ): # pragma: no cover
31
36
schema = test .schema
@@ -119,7 +124,8 @@ def leap_second(test):
119
124
Validator = jsonschema .Draft3Validator ,
120
125
format_checker = jsonschema .Draft3Validator .FORMAT_CHECKER ,
121
126
skip = lambda test : (
122
- missing_format (jsonschema .Draft3Validator )(test )
127
+ ecmascript_regex (test )
128
+ or missing_format (jsonschema .Draft3Validator )(test )
123
129
or complex_email_validation (test )
124
130
),
125
131
)
@@ -136,7 +142,8 @@ def leap_second(test):
136
142
Validator = jsonschema .Draft4Validator ,
137
143
format_checker = jsonschema .Draft4Validator .FORMAT_CHECKER ,
138
144
skip = lambda test : (
139
- leap_second (test )
145
+ ecmascript_regex (test )
146
+ or leap_second (test )
140
147
or missing_format (jsonschema .Draft4Validator )(test )
141
148
or complex_email_validation (test )
142
149
),
@@ -153,7 +160,8 @@ def leap_second(test):
153
160
Validator = jsonschema .Draft6Validator ,
154
161
format_checker = jsonschema .Draft6Validator .FORMAT_CHECKER ,
155
162
skip = lambda test : (
156
- leap_second (test )
163
+ ecmascript_regex (test )
164
+ or leap_second (test )
157
165
or missing_format (jsonschema .Draft6Validator )(test )
158
166
or complex_email_validation (test )
159
167
),
@@ -172,7 +180,8 @@ def leap_second(test):
172
180
Validator = jsonschema .Draft7Validator ,
173
181
format_checker = jsonschema .Draft7Validator .FORMAT_CHECKER ,
174
182
skip = lambda test : (
175
- leap_second (test )
183
+ ecmascript_regex (test )
184
+ or leap_second (test )
176
185
or missing_format (jsonschema .Draft7Validator )(test )
177
186
or complex_email_validation (test )
178
187
),
@@ -208,6 +217,7 @@ def leap_second(test):
208
217
format_checker = jsonschema .Draft201909Validator .FORMAT_CHECKER ,
209
218
skip = lambda test : (
210
219
complex_email_validation (test )
220
+ or ecmascript_regex (test )
211
221
or leap_second (test )
212
222
or missing_format (jsonschema .Draft201909Validator )(test )
213
223
or complex_email_validation (test )
@@ -244,6 +254,7 @@ def leap_second(test):
244
254
format_checker = jsonschema .Draft202012Validator .FORMAT_CHECKER ,
245
255
skip = lambda test : (
246
256
complex_email_validation (test )
257
+ or ecmascript_regex (test )
247
258
or leap_second (test )
248
259
or missing_format (jsonschema .Draft202012Validator )(test )
249
260
or complex_email_validation (test )
0 commit comments