We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90024ec commit b8b67c7Copy full SHA for b8b67c7
tests/unit/formats/test_rfc3339.py
@@ -78,7 +78,7 @@ def test_basic_bounds_validated(datestr):
78
)
79
def test_day_bounds_by_month(month, maxday):
80
good_date = f"2020-{month:02}-{maxday:02}T00:00:00Z"
81
- bad_date = f"2020-{month:02}-{maxday+1:02}T00:00:00Z"
+ bad_date = f"2020-{month:02}-{(maxday + 1):02}T00:00:00Z"
82
assert validate(good_date)
83
assert not validate(bad_date)
84
@@ -94,6 +94,6 @@ def test_day_bounds_by_month(month, maxday):
94
95
def test_day_bounds_for_february(year, maxday):
96
good_date = f"{year}-02-{maxday:02}T00:00:00Z"
97
- bad_date = f"{year}-02-{maxday+1:02}T00:00:00Z"
+ bad_date = f"{year}-02-{(maxday + 1):02}T00:00:00Z"
98
99
0 commit comments