All pastes #813214 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-12-12 11:03 UTC
rendered paste body
Traceback (most recent call last):
  File "/opt/Plone-3.0.4/lib/python/DateTime/tests/testDateTime.py", line 89, in testConstructor5
    self.assertEqual(str(dt), str(dt1), (dt, dt1))
AssertionError: (DateTime('2007/12/12 21:51:05.307 US/Eastern'), DateTime('2007/12/12 05:51:05.307 US/Eastern'))

======================================================================
FAIL: rfc822 conversion
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/Plone-3.0.4/lib/python/DateTime/tests/testDateTime.py", line 328, in testRFC822
    self.assertEqual(dts[5], "%+03d%02d" % divmod( (-offset/60), 60) )
AssertionError: '-0500' != '+1100'

======================================================================
FAIL: Reconstruction of a DateTime from its parts, with subtraction
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/Plone-3.0.4/lib/python/DateTime/tests/testDateTime.py", line 138, in testSubtraction
    self.assertEqual(dt1, dt3, (dt, dt1, dt2, dt3))
AssertionError: (DateTime('2007/12/12 21:51:19.545 US/Eastern'), DateTime('2007/12/09 02:27:25.940 US/Eastern'), DateTime('2007/12/12 21:51:19.545 US/Eastern'), DateTime('2007/12/09 18:27:25.940 US/Eastern'))

======================================================================
FAIL: Doctest: DateTime.txt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/Plone-3.0.4/lib/python/zope/testing/doctest.py", line 2312, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
DocTestFailureException: Failed doctest test for DateTime.txt
  File "/opt/Plone-3.0.4/lib/python/DateTime/DateTime.txt", line 0

----------------------------------------------------------------------
File "/opt/Plone-3.0.4/lib/python/DateTime/DateTime.txt", line 287, in DateTime.txt
Failed example:
    DateTime().isCurrentHour()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/opt/Plone-3.0.4/lib/python/DateTime/DateTime.txt", line 296, in DateTime.txt
Failed example:
    DateTime().isCurrentMinute()
Expected:
    True
Got:
    False