mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
Fix datetime and its test.
This commit is contained in:
parent
1be7e3f2ec
commit
e3d1d41184
2 changed files with 23 additions and 9 deletions
|
@ -1098,7 +1098,8 @@ 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.
|
||||
self.theclass(base[:2] + chr(ord_byte) + base[3:])
|
||||
# XXX Maybe this will have to become bytes?
|
||||
self.theclass(str8(base[:2] + chr(ord_byte) + base[3:]))
|
||||
|
||||
#############################################################################
|
||||
# datetime tests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue