summaryrefslogtreecommitdiff
path: root/Lib/test/test_datetime.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-27 17:23:59 +0000
committerGuido van Rossum <guido@python.org>2007-08-27 17:23:59 +0000
commit94deb8df40ccc59eab54635b5344c702a66f438b (patch)
tree252c7034990bcf658e3bdb3aabe28d608f4cbe45 /Lib/test/test_datetime.py
parentae46080fd91203e48ad807d41c430e0d9f1a5c5c (diff)
downloadcpython-94deb8df40ccc59eab54635b5344c702a66f438b.tar.gz
Changes in anticipation of stricter str vs. bytes enforcement.
Diffstat (limited to 'Lib/test/test_datetime.py')
-rw-r--r--Lib/test/test_datetime.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py
index b26c92e21e..dce9fc348d 100644
--- a/Lib/test/test_datetime.py
+++ b/Lib/test/test_datetime.py
@@ -1085,7 +1085,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.
- self.theclass(bytes(base[:2] + chr(ord_byte) + base[3:]))
+ self.theclass(bytes(base[:2] + chr(ord_byte) + base[3:], "ascii"))
#############################################################################
# datetime tests