On Mon, Jul 4, 2011 at 20:10:44 +0200, Jakub Wilk wrote: > tags 629699 + confirmed > thanks > > * Didier Raboud <o...@debian.org>, 2011-06-08, 17:13: > >> self.assertEqual("11 months and 30 days", distance_of_time_in_words(0, > >> 31536000)) > >>AssertionError: '11 months and 30 days' != '11 months and 29 days' > > Indeed, distance_of_time_in_words returns different values depending > on the current time (and timezone): > > $ export TZ=Europe/Warsaw > $ for d in 01-01 03-01 03-02 03-27 04-02 10-30; do faketime "2011-$d UTC" > python -c 'import webhelpers.date as d; print d.distance_of_time_in_words(0, > 31536000)'; done > 1 year > 11 months and 28 days > 11 months and 30 days > 11 months, 30 days and 1 hour > 11 months and 29 days > 11 months, 29 days and 23 hours > Hi,
does anybody see a reason not to just disable this test? That seems to have been done in fedora, fwiw (http://pkgs.fedoraproject.org/gitweb/?p=python-webhelpers.git;a=commitdiff;h=3949b1c8cbd8baf038c94a815aa8cdbc35dfd4f6) Cheers, Julien -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org