summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-23 21:24:35 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-23 21:24:35 (GMT)
commite3d1d41184175f3e77c9ae1132f6d35a1117a6c3 (patch)
tree7eaf94e1f3a42efbd645447fd324b2be98daaeb3 /Lib
parent1be7e3f2ec91a811e76972c3c7a986795f7dadbd (diff)
downloadcpython-e3d1d41184175f3e77c9ae1132f6d35a1117a6c3.zip
cpython-e3d1d41184175f3e77c9ae1132f6d35a1117a6c3.tar.gz
cpython-e3d1d41184175f3e77c9ae1132f6d35a1117a6c3.tar.bz2
Fix datetime and its test.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_datetime.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py
index 4ab2f7b..89c126f 100644
--- a/Lib/test/test_datetime.py
+++ b/Lib/test/test_datetime.py
@@ -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