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
7
tests/basics/bytes_format_modulo.py
Normal file
7
tests/basics/bytes_format_modulo.py
Normal file
@ -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")
|
5
tests/basics/bytes_format_modulo.py.exp
Normal file
5
tests/basics/bytes_format_modulo.py.exp
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
b'%'
|
||||||
|
b'=1='
|
||||||
|
b'=1=2='
|
||||||
|
b'=str='
|
||||||
|
b"=b'str'="
|
Loading…
Reference in New Issue
Block a user