[Python-modules-commits] r20047 - in packages/python-django/trunk/debian (3 files)
hertzog at users.alioth.debian.org
hertzog at users.alioth.debian.org
Thu Jan 19 07:08:08 UTC 2012
Date: Thursday, January 19, 2012 @ 07:08:05
Author: hertzog
Revision: 20047
Add 08_fix_test_week_view_allow_future.diff to fix a regression test that
only worked in 2011. Closes: #655666
Added:
packages/python-django/trunk/debian/patches/08_fix_test_week_view_allow_future.diff
Modified:
packages/python-django/trunk/debian/changelog
packages/python-django/trunk/debian/patches/series
Modified: packages/python-django/trunk/debian/changelog
===================================================================
--- packages/python-django/trunk/debian/changelog 2012-01-18 21:27:18 UTC (rev 20046)
+++ packages/python-django/trunk/debian/changelog 2012-01-19 07:08:05 UTC (rev 20047)
@@ -1,3 +1,10 @@
+python-django (1.3.1-4) unstable; urgency=medium
+
+ * Add 08_fix_test_week_view_allow_future.diff to fix a regression test that
+ only worked in 2011. Closes: #655666
+
+ -- Raphaël Hertzog <hertzog at debian.org> Tue, 17 Jan 2012 08:55:58 +0100
+
python-django (1.3.1-3) unstable; urgency=low
* Add 06_use_debian_geoip_database_as_default.diff to use the default
Added: packages/python-django/trunk/debian/patches/08_fix_test_week_view_allow_future.diff
===================================================================
--- packages/python-django/trunk/debian/patches/08_fix_test_week_view_allow_future.diff (rev 0)
+++ packages/python-django/trunk/debian/patches/08_fix_test_week_view_allow_future.diff 2012-01-19 07:08:05 UTC (rev 20047)
@@ -0,0 +1,15 @@
+Description: Fix regression test test_week_view_allow_future that only worked in 2011
+Bug: https://code.djangoproject.com/ticket/17488
+Bug-Debian: http://bugs.debian.org/655666
+Origin: upstream, https://code.djangoproject.com/changeset/17321
+
+--- a/tests/regressiontests/generic_views/dates.py (revision 16981)
++++ b/tests/regressiontests/generic_views/dates.py (revision 17321)
+@@ -258,5 +258,6 @@
+
+ def test_week_view_allow_future(self):
+- future = datetime.date(datetime.date.today().year + 1, 1, 1)
++ # January 7th always falls in week 1, given Python's definition of week numbers
++ future = datetime.date(datetime.date.today().year + 1, 1, 7)
+ b = Book.objects.create(name="The New New Testement", pages=600, pubdate=future)
+
Modified: packages/python-django/trunk/debian/patches/series
===================================================================
--- packages/python-django/trunk/debian/patches/series 2012-01-18 21:27:18 UTC (rev 20046)
+++ packages/python-django/trunk/debian/patches/series 2012-01-19 07:08:05 UTC (rev 20047)
@@ -5,3 +5,4 @@
05_fix_djangodocs_sphinx_ext.diff
06_use_debian_geoip_database_as_default.diff
07_fix_for_sphinx1.1.2.diff
+08_fix_test_week_view_allow_future.diff
More information about the Python-modules-commits
mailing list