Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1188891 > unrolled thread

Bug#1065357: parsedatetime: testNextMonth fails around February 29

Started byGraham Inggs <ginggs@debian.org>
First post2024-03-03 12:10 +0100
Last post2024-03-03 12:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1065357: parsedatetime: testNextMonth fails around February 29 Graham Inggs <ginggs@debian.org> - 2024-03-03 12:10 +0100

#1188891 — Bug#1065357: parsedatetime: testNextMonth fails around February 29

FromGraham Inggs <ginggs@debian.org>
Date2024-03-03 12:10 +0100
SubjectBug#1065357: parsedatetime: testNextMonth fails around February 29
Message-ID<IdRTb-e7S9-9@gated-at.bofh.it>
Source: parsedatetime
Version: 2.6-3
Severity: important
Tags: ftbfs
Forwarded: https://github.com/bear/parsedatetime/issues/282

Hi Maintainer

testNextMonth fails around February 29.  I've copied what I hope is
the relevant part of the log below.

Regards
Graham


287s =================================== FAILURES
===================================
287s ______________________________ test.testNextMonth
______________________________
287s
287s self = <tests.TestSimpleOffsets.test testMethod=testNextMonth>
287s
287s     def testNextMonth(self):
287s         s = (datetime.datetime(self.yr, self.mth, self.dy,
287s                                self.hr, self.mn, self.sec) +
287s              datetime.timedelta(days=1))
287s         t = self.cal.inc(s, year=1)
287s
287s         start = s.timetuple()
287s         target = t.timetuple()
287s
287s         phrase = 'next %s %s' % (calendar.month_name[t.month], t.day)
287s
287s >       self.assertEqual(_tr(self.cal.parse(phrase, start)),
287s                          _tr((target, 1)))
287s E       AssertionError: Tuples differ: ((2026, 2, 28, 20, 42, 0,
0, 0, 0), 1) != ((2025, 2, 28, 20, 42, 0, 0, 0, 0), 1)
287s E
287s E       First differing element 0:
287s E       (2026, 2, 28, 20, 42, 0, 0, 0, 0)
287s E       (2025, 2, 28, 20, 42, 0, 0, 0, 0)
287s E
287s E       - ((2026, 2, 28, 20, 42, 0, 0, 0, 0), 1)
287s E       ?      ^
287s E
287s E       + ((2025, 2, 28, 20, 42, 0, 0, 0, 0), 1)
287s E       ?      ^
287s
287s tests/TestSimpleOffsets.py:251: AssertionError

[toc] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web