mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
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.
This commit is contained in:
parent
32a4c71419
commit
bc1f886170
4 changed files with 21 additions and 8 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue