mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Patch #1303: Adapt str8 constructor to bytes (now buffer) one.
This commit is contained in:
parent
97f9d4f312
commit
bd1c68c94f
15 changed files with 212 additions and 72 deletions
|
@ -82,7 +82,7 @@ finally:
|
|||
|
||||
# Test BSD Rune locale's bug for isctype functions.
|
||||
def teststrop(s, method, output):
|
||||
s = str8(s)
|
||||
s = str8(s, 'latin1') # XXX
|
||||
if verbose:
|
||||
print("%s.%s() =? %s ..." % (repr(s), method, repr(output)), end=' ')
|
||||
result = getattr(s, method)()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue