[Python-checkins] r77124 - in python/branches/py3k: Lib/test/test_datetime.py
amaury.forgeotdarc
python-checkins at python.org
Tue Dec 29 23:24:40 CET 2009
Author: amaury.forgeotdarc
Date: Tue Dec 29 23:24:40 2009
New Revision: 77124
Log:
(issue 7413 does not concern py3k, I merge the test nonetheless)
Merged revisions 77122 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77122 | amaury.forgeotdarc | 2009-12-29 23:03:38 +0100 (mar., 29 déc. 2009) | 3 lines
#7413: Passing '\0' as the separator to datetime.datetime.isoformat()
used to drop the time part of the result.
........
Modified:
python/branches/py3k/ (props changed)
python/branches/py3k/Lib/test/test_datetime.py
Modified: python/branches/py3k/Lib/test/test_datetime.py
==============================================================================
--- python/branches/py3k/Lib/test/test_datetime.py (original)
+++ python/branches/py3k/Lib/test/test_datetime.py Tue Dec 29 23:24:40 2009
@@ -1178,6 +1178,7 @@
self.assertEqual(t.isoformat(), "0002-03-02T04:05:01.000123")
self.assertEqual(t.isoformat('T'), "0002-03-02T04:05:01.000123")
self.assertEqual(t.isoformat(' '), "0002-03-02 04:05:01.000123")
+ self.assertEqual(t.isoformat('\x00'), "0002-03-02\x0004:05:01.000123")
# str is ISO format with the separator forced to a blank.
self.assertEqual(str(t), "0002-03-02 04:05:01.000123")
More information about the Python-checkins
mailing list