diff --git a/tests/regressiontests/i18n/tests.py b/tests/regressiontests/i18n/tests.py index 56fd2bcfa5b..e70f3052f17 100644 --- a/tests/regressiontests/i18n/tests.py +++ b/tests/regressiontests/i18n/tests.py @@ -173,7 +173,7 @@ class FormattingTests(TestCase): self.assertEqual(datetime.date(2009, 12, 31), form2.cleaned_data['date_field']) self.assertEqual( u'\n\n', - SelectDateWidget().render('mydate', datetime.date(2009, 12, 31)) + SelectDateWidget(years=range(2009, 2019)).render('mydate', datetime.date(2009, 12, 31)) ) finally: deactivate() @@ -242,7 +242,7 @@ class FormattingTests(TestCase): self.assertEqual(datetime.date(2009, 12, 31), form4.cleaned_data['date_field']) self.assertEqual( u'\n\n', - SelectDateWidget().render('mydate', datetime.date(2009, 12, 31)) + SelectDateWidget(years=range(2009, 2019)).render('mydate', datetime.date(2009, 12, 31)) ) finally: deactivate() @@ -307,7 +307,7 @@ class FormattingTests(TestCase): self.assertEqual(datetime.date(2009, 12, 31), form6.cleaned_data['date_field']) self.assertEqual( u'\n\n', - SelectDateWidget().render('mydate', datetime.date(2009, 12, 31)) + SelectDateWidget(years=range(2009, 2019)).render('mydate', datetime.date(2009, 12, 31)) ) finally: deactivate()