summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-06-20 11:02:38 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-06-20 11:02:38 (GMT)
commitbc1f886170286291ad270d1935bd61151e398110 (patch)
treeeb5ef3a5949160a92703699ecf2b326d5ea6628b /Lib
parent32a4c7141911c58f01afe7b89482dbd4ce4f817f (diff)
downloadcpython-bc1f886170286291ad270d1935bd61151e398110.zip
cpython-bc1f886170286291ad270d1935bd61151e398110.tar.gz
cpython-bc1f886170286291ad270d1935bd61151e398110.tar.bz2
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')
-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 89c126f..b827658 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):