Fix datetime and its test.

This commit is contained in:
Guido van Rossum 2007-05-23 21:24:35 +00:00
parent 1be7e3f2ec
commit e3d1d41184
2 changed files with 23 additions and 9 deletions

View file

@ -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