Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@freakboy3742 freakboy3742 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/generic_views/dates.py
View
4 tests/regressiontests/generic_views/dates.py
@@ -221,10 +221,10 @@ def test_week_view_allow_future(self):
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])
Please sign in to comment.
Something went wrong with that request. Please try again.