tests: Add tests for %-formatting of bytes.
This requires CPython3.5, to not require switching to it, just use .exp file.
This commit is contained in:
parent
d50f649cf8
commit
664bc44f30
|
@ -0,0 +1,7 @@
|
|||
# This test requires CPython3.5
|
||||
print(b"%%" % ())
|
||||
print(b"=%d=" % 1)
|
||||
print(b"=%d=%d=" % (1, 2))
|
||||
|
||||
print(b"=%s=" % b"str")
|
||||
print(b"=%r=" % b"str")
|
|
@ -0,0 +1,5 @@
|
|||
b'%'
|
||||
b'=1='
|
||||
b'=1=2='
|
||||
b'=str='
|
||||
b"=b'str'="
|
Loading…
Reference in New Issue