Skip to content

Commit 69c6823

Browse files
committed
renames message and function
1 parent 2f1d5ef commit 69c6823

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

jsonschema/tests/test_jsonschema_test_suite.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def narrow_unicode_build(test): # pragma: no cover
8888

8989

9090
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+"
9292

93-
def python_lt_37_build(test):
93+
def missing_date_fromisoformat(test):
9494
return skip(
9595
message=message,
9696
subject="date",
@@ -101,7 +101,7 @@ def python_lt_37_build(test):
101101
description="invalidates non-padded day dates",
102102
)(test)
103103
else:
104-
def python_lt_37_build(test):
104+
def missing_date_fromisoformat(test):
105105
return
106106

107107

@@ -115,7 +115,7 @@ def python_lt_37_build(test):
115115
format_checker=draft3_format_checker,
116116
skip=lambda test: (
117117
narrow_unicode_build(test)
118-
or python_lt_37_build(test)
118+
or missing_date_fromisoformat(test)
119119
or missing_format(draft3_format_checker)(test)
120120
or complex_email_validation(test)
121121
or skip(
@@ -167,7 +167,7 @@ def python_lt_37_build(test):
167167
format_checker=draft4_format_checker,
168168
skip=lambda test: (
169169
narrow_unicode_build(test)
170-
or python_lt_37_build(test)
170+
or missing_date_fromisoformat(test)
171171
or missing_format(draft4_format_checker)(test)
172172
or complex_email_validation(test)
173173
or skip(
@@ -247,7 +247,7 @@ def python_lt_37_build(test):
247247
format_checker=draft6_format_checker,
248248
skip=lambda test: (
249249
narrow_unicode_build(test)
250-
or python_lt_37_build(test)
250+
or missing_date_fromisoformat(test)
251251
or missing_format(draft6_format_checker)(test)
252252
or complex_email_validation(test)
253253
or skip(
@@ -348,7 +348,7 @@ def python_lt_37_build(test):
348348
format_checker=draft7_format_checker,
349349
skip=lambda test: (
350350
narrow_unicode_build(test)
351-
or python_lt_37_build(test)
351+
or missing_date_fromisoformat(test)
352352
or missing_format(draft7_format_checker)(test)
353353
or complex_email_validation(test)
354354
or skip(

0 commit comments

Comments
 (0)