summaryrefslogtreecommitdiff
path: root/Lib/test/test_datetime.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-23 21:24:35 +0000
committerGuido van Rossum <guido@python.org>2007-05-23 21:24:35 +0000
commit303b873cfff68f1c9f0ad1c585a834053084e7bf (patch)
tree9236554e19174a7b27b2333b431efe59c99f4dea /Lib/test/test_datetime.py
parentab6f7820c8aa5b1b7e125893c7d8ad9e9c3bbe82 (diff)
downloadcpython-303b873cfff68f1c9f0ad1c585a834053084e7bf.tar.gz
Fix datetime and its test.
Diffstat (limited to 'Lib/test/test_datetime.py')
-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 4ab2f7bc69..89c126fec1 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