@@ -88,9 +88,9 @@ def narrow_unicode_build(test): # pragma: no cover
88
88
89
89
90
90
if sys .version_info < (3 , 7 ):
91
- message = "Not running tests which require Python 3.7 or greater "
91
+ message = "datetime.date.fromisoformat is new in 3.7+ "
92
92
93
- def python_lt_37_build (test ):
93
+ def missing_date_fromisoformat (test ):
94
94
return skip (
95
95
message = message ,
96
96
subject = "date" ,
@@ -101,7 +101,7 @@ def python_lt_37_build(test):
101
101
description = "invalidates non-padded day dates" ,
102
102
)(test )
103
103
else :
104
- def python_lt_37_build (test ):
104
+ def missing_date_fromisoformat (test ):
105
105
return
106
106
107
107
@@ -115,7 +115,7 @@ def python_lt_37_build(test):
115
115
format_checker = draft3_format_checker ,
116
116
skip = lambda test : (
117
117
narrow_unicode_build (test )
118
- or python_lt_37_build (test )
118
+ or missing_date_fromisoformat (test )
119
119
or missing_format (draft3_format_checker )(test )
120
120
or complex_email_validation (test )
121
121
or skip (
@@ -167,7 +167,7 @@ def python_lt_37_build(test):
167
167
format_checker = draft4_format_checker ,
168
168
skip = lambda test : (
169
169
narrow_unicode_build (test )
170
- or python_lt_37_build (test )
170
+ or missing_date_fromisoformat (test )
171
171
or missing_format (draft4_format_checker )(test )
172
172
or complex_email_validation (test )
173
173
or skip (
@@ -247,7 +247,7 @@ def python_lt_37_build(test):
247
247
format_checker = draft6_format_checker ,
248
248
skip = lambda test : (
249
249
narrow_unicode_build (test )
250
- or python_lt_37_build (test )
250
+ or missing_date_fromisoformat (test )
251
251
or missing_format (draft6_format_checker )(test )
252
252
or complex_email_validation (test )
253
253
or skip (
@@ -348,7 +348,7 @@ def python_lt_37_build(test):
348
348
format_checker = draft7_format_checker ,
349
349
skip = lambda test : (
350
350
narrow_unicode_build (test )
351
- or python_lt_37_build (test )
351
+ or missing_date_fromisoformat (test )
352
352
or missing_format (draft7_format_checker )(test )
353
353
or complex_email_validation (test )
354
354
or skip (
0 commit comments