From da524c56e165579aa8b113f871bea8ad7304b765 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Sat, 15 Jan 2011 06:33:36 +0000 Subject: [PATCH] =?UTF-8?q?Fixed=20#15048=20--=20Modified=20a=20test=20cas?= =?UTF-8?q?e=20to=20avoid=20a=20known=20bug=20in=20Python=202.4's=20time?= =?UTF-8?q?=20library.=20Thanks=20to=20=C5=81ukasz=20Rekucki=20for=20the?= =?UTF-8?q?=20report.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.djangoproject.com/svn/django/trunk@15216 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/generic_views/dates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regressiontests/generic_views/dates.py b/tests/regressiontests/generic_views/dates.py index c583d0ba60..09d52c1859 100644 --- a/tests/regressiontests/generic_views/dates.py +++ b/tests/regressiontests/generic_views/dates.py @@ -221,10 +221,10 @@ class WeekArchiveViewTests(TestCase): future = datetime.date(datetime.date.today().year + 1, 1, 1) b = Book.objects.create(name="The New New Testement", pages=600, pubdate=future) - res = self.client.get('/dates/books/%s/week/0/' % future.year) + res = self.client.get('/dates/books/%s/week/1/' % future.year) self.assertEqual(res.status_code, 404) - res = self.client.get('/dates/books/%s/week/0/allow_future/' % future.year) + res = self.client.get('/dates/books/%s/week/1/allow_future/' % future.year) self.assertEqual(res.status_code, 200) self.assertEqual(list(res.context['books']), [b])