From 39478e852827a4ca6955151bf004c7a15099a4b1 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 27 Aug 2007 17:23:59 +0000 Subject: Changes in anticipation of stricter str vs. bytes enforcement. --- Lib/test/test_datetime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_datetime.py') diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py index b26c92e21e3..dce9fc348d4 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 -- cgit v1.2.3