mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Change Py_BuildValue to generate Unicode objects for
's' and 'c' codes. Change pickle to dump bytes objects using the 'S' code, and to load the 'S' code as byte objects. Change datetime and array to generate and expect bytes objects in reduce/unreduce.
This commit is contained in:
parent
6f2df4d5e1
commit
10a60b3ec0
8 changed files with 166 additions and 45 deletions
|
@ -1097,8 +1097,7 @@ class TestDate(HarmlessMixedComparison, unittest.TestCase):
|
|||
# This shouldn't blow up because of the month byte alone. If
|
||||
# the implementation changes to do more-careful checking, it may
|
||||
# blow up because other fields are insane.
|
||||
# XXX Maybe this will have to become bytes?
|
||||
self.theclass(str8(base[:2] + chr(ord_byte) + base[3:]))
|
||||
self.theclass(bytes(base[:2] + chr(ord_byte) + base[3:]))
|
||||
|
||||
#############################################################################
|
||||
# datetime tests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue