ilyesdata / parsedatetime

Automatically exported from code.google.com/p/parsedatetime
Apache License 2.0
0 stars 0 forks source link

tests failing in 0.8.4 #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

While preparing a Debian package of parsedatetime I run into the follwing
failure while running the tests:

...F....................................
======================================================================
FAIL: testErrors (parsedatetime.tests.TestErrors.test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/bzed/workspace/debian/build-area/parsedatetime-0.8.4/parsedatetime/tests/
TestErrors.py",
line 44, in testErrors
    self.assertTrue(_compareResults(self.cal.parse('30/030/01/071/07',
start), (start, 0)))
AssertionError

----------------------------------------------------------------------
Ran 40 tests in 0.195s

FAILED (failures=1)

I'm also preparing a PyICU package, but it doesn't build at the moment, so
the tests run without PyICU.

Let me know if you need more informations.

Original issue reported on code.google.com by bernd.ze...@gmail.com on 5 Nov 2007 at 12:55

GoogleCodeExporter commented 8 years ago
ahh - the test is being "checked" incorrectly.

With the other tests in TestErrors, the return value was always the current 
date and
time because the values are not parsed.

With that garbage string, a valid date is parsed (I still don't know how to be
honest) but the flag is set - so I had to write a new _compareResults() routine 
for it.

Fixed in revision 78

Original comment by bear42 on 21 Apr 2008 at 4:36