mirror of
https://github.com/python/cpython.git
synced 2025-10-08 08:01:55 +00:00
Changes in anticipation of stricter str vs. bytes enforcement.
This commit is contained in:
parent
85825dc1ff
commit
39478e8528
15 changed files with 78 additions and 76 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue