From eecd90f5c236eae02adc6a79c897035322b78746 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Wed, 3 Jan 2007 03:58:11 +0000 Subject: [PATCH] Fixed problem with SelectDateWidget test caused by 2006/2007 year rollover. Thanks, Robert Myers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4272 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/regressiontests/forms/tests.py b/tests/regressiontests/forms/tests.py index 79a320c131..0852fbcf0e 100644 --- a/tests/regressiontests/forms/tests.py +++ b/tests/regressiontests/forms/tests.py @@ -2482,7 +2482,7 @@ demonstrate some of the library's abilities. # SelectDateWidget ############################################################ >>> from django.newforms.extras import SelectDateWidget ->>> w = SelectDateWidget() +>>> w = SelectDateWidget(years=('2007','2008','2009','2010','2011','2012','2013','2014','2015','2016')) >>> print w.render('mydate', '') >>> w.render('mydate', None) == w.render('mydate', '') True @@ -2594,7 +2594,6 @@ True """