Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #15048 -- Modified a test case to avoid a known bug in Python 2…

….4's time library. Thanks to Łukasz Rekucki for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit da524c56e165579aa8b113f871bea8ad7304b765 1 parent d7fa33a
Russell Keith-Magee authored January 15, 2011
4  tests/regressiontests/generic_views/dates.py
@@ -221,10 +221,10 @@ def test_week_view_allow_future(self):
221 221
         future = datetime.date(datetime.date.today().year + 1, 1, 1)
222 222
         b = Book.objects.create(name="The New New Testement", pages=600, pubdate=future)
223 223
 
224  
-        res = self.client.get('/dates/books/%s/week/0/' % future.year)
  224
+        res = self.client.get('/dates/books/%s/week/1/' % future.year)
225 225
         self.assertEqual(res.status_code, 404)
226 226
 
227  
-        res = self.client.get('/dates/books/%s/week/0/allow_future/' % future.year)
  227
+        res = self.client.get('/dates/books/%s/week/1/allow_future/' % future.year)
228 228
         self.assertEqual(res.status_code, 200)
229 229
         self.assertEqual(list(res.context['books']), [b])
230 230
 

0 notes on commit da524c5

Please sign in to comment.
Something went wrong with that request. Please try again.