diff options
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-12-29 22:39:49 (GMT) |
|---|---|---|
| committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-12-29 22:39:49 (GMT) |
| commit | 7682d043634ea59fc994520ed1b2c305530cc343 (patch) | |
| tree | e934977238c216303f8df0ef8e12f5eab515329e /Lib/test/test_datetime.py | |
| parent | 2b4b2d1c882238787d0f341c11d13d92d6dd8df2 (diff) | |
| download | cpython-7682d043634ea59fc994520ed1b2c305530cc343.zip cpython-7682d043634ea59fc994520ed1b2c305530cc343.tar.gz cpython-7682d043634ea59fc994520ed1b2c305530cc343.tar.bz2 | |
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/test/test_datetime.py')
| -rw-r--r-- | Lib/test/test_datetime.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py index 24ec895..dbd2f8f 100644 --- a/Lib/test/test_datetime.py +++ b/Lib/test/test_datetime.py @@ -1173,6 +1173,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") |
