mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -305,7 +305,9 @@ class MemorySeekTestMixin:
|
|||
|
||||
|
||||
class BytesIOTest(MemorySeekTestMixin, unittest.TestCase):
|
||||
buftype = bytes
|
||||
@staticmethod
|
||||
def buftype(s):
|
||||
return s.encode("utf-8")
|
||||
ioclass = io.BytesIO
|
||||
EOF = b""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue