Skip to content

FAIL: testDate3ConfusedHourAndYear (tests.TestComplexDateTimes.test) #263

Open
@exarkun

Description

@exarkun
======================================================================
FAIL: testDate3ConfusedHourAndYear (tests.TestComplexDateTimes.test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/parsedatetime-2.4/tests/TestComplexDateTimes.py", line 47, in testDate3ConfusedHourAndYear
    6, 30, 12, 0, 0).timetuple(), 3))
  File "/build/parsedatetime-2.4/tests/utils.py", line 22, in decoratedComparator
    self.fail(failureMessage % (errMsg, result, check))
AssertionError: Result does not match target value

        Result:
        (time.struct_time(tm_year=2021, tm_mon=6, tm_mday=30, tm_hour=12, tm_min=0, tm_sec=0, tm_wday=2, tm_yday=181, tm_isdst=-1), 3)

        Expected:
        (time.struct_time(tm_year=2022, tm_mon=6, tm_mday=30, tm_hour=12, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=181, tm_isdst=-1), 3)

----------------------------------------------------------------------

Today is June 30th and the failing assertion is operating on June 30th without a year specified so I suppose this is a test that always fails on June 30th.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions