Author martin.panter
Recipients SilentGhost, acucci, andrei.duma, belopolsky, berker.peksag, cvrebert, ezio.melotti, gvanrossum, haypo, jerry.elmore, lemburg, martin.panter, matrixise, r.david.murray, skip.montanaro, terry.reedy, tim.peters
Date 2015-12-16.22:41:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1450305673.32.0.719709122589.issue19475@psf.upfronthosting.co.za>
In-reply-to
Content
With patch v4 many tests still fail for me. How are you running the test suite? Some excerpts:

  File "/media/disk/home/proj/python/cpython/Lib/test/datetimetester.py", line 1567, in test_isoformat
    self.assertEqual(t.isoformat(timespec='milliseconds'), "0001-02-03T04:05:01.000")
AssertionError: '0001-02-03T04:05:01.000000' != '0001-02-03T04:05:01.000'

  File "/media/disk/home/proj/python/cpython/Lib/test/datetimetester.py", line 2310, in test_isoformat
    self.assertEqual(t.isoformat(), "00:00:00")
AssertionError: '00:00:00.000000' != '00:00:00'

  File "/media/disk/home/proj/python/cpython/Lib/test/datetimetester.py", line 2379, in test_str
    self.assertEqual(str(self.theclass(12, 2, 3, 0)), "12:02:03")
AssertionError: '12:02:03.000000' != '12:02:03'

The C module doc string I referred to is this one; I left a review comment at the source:

>>> print(datetime.isoformat.__doc__)
[sep] -> string in ISO 8601 format, YYYY-MM-DDTHH:MM:SS[.mmmmmm][+HH:MM].

sep is used to separate the year from the time, and defaults to 'T'.
History
Date User Action Args
2015-12-16 22:41:13martin.pantersetrecipients: + martin.panter, lemburg, gvanrossum, tim.peters, skip.montanaro, terry.reedy, belopolsky, haypo, ezio.melotti, r.david.murray, cvrebert, SilentGhost, berker.peksag, matrixise, andrei.duma, jerry.elmore, acucci
2015-12-16 22:41:13martin.pantersetmessageid: <1450305673.32.0.719709122589.issue19475@psf.upfronthosting.co.za>
2015-12-16 22:41:13martin.panterlinkissue19475 messages
2015-12-16 22:41:13martin.pantercreate