summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-12-29 22:24:40 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-12-29 22:24:40 (GMT)
commitca5f1a716e386d600d58456afcd23f788b241c7f (patch)
tree5514f62337c2e0104982d59b49788f613317a985 /Lib
parentfbd1b2203deecbeef7be5b8e2e1221af1964f106 (diff)
downloadcpython-ca5f1a716e386d600d58456afcd23f788b241c7f.zip
cpython-ca5f1a716e386d600d58456afcd23f788b241c7f.tar.gz
cpython-ca5f1a716e386d600d58456afcd23f788b241c7f.tar.bz2
(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. ........
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_datetime.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py
index 8714b16..74736bc 100644
--- a/Lib/test/test_datetime.py
+++ b/Lib/test/test_datetime.py
@@ -1178,6 +1178,7 @@ class TestDateTime(TestDate):
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")