Skip to content

Commit fb84f32

Browse files
test: Tweak test to avoid Leap Day failure (#7119)
* test: Tweak test to avoid Leap Day failure 🎉 * chore: Rephrase comment * chore: Remove debug code
1 parent 08e0c83 commit fb84f32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ietf/submit/tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3669,7 +3669,8 @@ def test_api_submit_no_title(self):
36693669
self.assertContains(r, expected, status_code=400)
36703670

36713671
def test_api_submit_failed_idnits(self):
3672-
r, author, name = self.do_post_submission('00', year="2010")
3672+
# `year` on the next line must be leap year or this test will fail every Feb 29
3673+
r, author, name = self.do_post_submission('00', year="2012")
36733674
expected = "Document date must be within 3 days of submission date"
36743675
self.assertContains(r, expected, status_code=400)
36753676

0 commit comments

Comments
 (0)