Skip to content

Commit a6fe6b0

Browse files
committed
A minimized fix for the issue highlighted in PR498 (thanks @albu-diku). Only
touch the specific test case and comment on the choice of month there.
1 parent 6e34732 commit a6fe6b0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/test_mig_lib_events.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,11 @@ def test_cron_match_with_leading_zero_match(self):
492492
"minute": "*",
493493
"hour": "*",
494494
"dayofmonth": "*",
495-
"month": "06",
495+
"month": "05",
496496
"dayofweek": "*",
497497
},
498-
now.replace(month=6),
498+
# NOTE: pick a month with 31 days to avoid invalid date on 31st
499+
now.replace(month=5),
499500
),
500501
(
501502
{

0 commit comments

Comments
 (0)