Author: russellm
Date: 2011-01-15 00:33:36 -0600 (Sat, 15 Jan 2011)
New Revision: 15216

Modified:
   django/trunk/tests/regressiontests/generic_views/dates.py
Log:
Fixed #15048 -- Modified a test case to avoid a known bug in Python 2.4's time 
library. Thanks to ?\197?\129ukasz Rekucki for the report.

Modified: django/trunk/tests/regressiontests/generic_views/dates.py
===================================================================
--- django/trunk/tests/regressiontests/generic_views/dates.py   2011-01-15 
06:31:38 UTC (rev 15215)
+++ django/trunk/tests/regressiontests/generic_views/dates.py   2011-01-15 
06:33:36 UTC (rev 15216)
@@ -221,10 +221,10 @@
         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])
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to