diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-06-20 11:02:38 +0000 |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-06-20 11:02:38 +0000 |
commit | 8cd880020ddc25d9933f1b0af92ddc8b7a959252 (patch) | |
tree | 3bfe4e7989c1223c88d6120335e3f80c2ab8e701 /Lib/test/test_datetime.py | |
parent | bee9339ea17ba04f0ae14ab308692de25f4d71fd (diff) | |
download | cpython-8cd880020ddc25d9933f1b0af92ddc8b7a959252.tar.gz |
Change %c format specifier for PyArg_ParseTuple() so that it accepts
a unicode character (an int * must be passed as the argument).
Change %c format specifier for Py_BuildValue() so that it outputs
a unicode object.
Fix datetime.datetime.isoformat(), so that it works if sep is
a unicode character > U+00FF.
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 89c126fec1..b827658579 100644 --- a/Lib/test/test_datetime.py +++ b/Lib/test/test_datetime.py @@ -2749,6 +2749,7 @@ class TestDateTimeTZ(TestDateTime, TZInfoBase, unittest.TestCase): self.assertEqual(iso, datestr + 'T' + tailstr) self.assertEqual(iso, d.isoformat('T')) self.assertEqual(d.isoformat('k'), datestr + 'k' + tailstr) + self.assertEqual(d.isoformat('\u1234'), datestr + '\u1234' + tailstr) self.assertEqual(str(d), datestr + ' ' + tailstr) def test_replace(self): |