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:
Paul Sokolovsky 2015-12-20 16:54:34 +02:00
parent d50f649cf8
commit 664bc44f30
2 changed files with 12 additions and 0 deletions

View 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")

View File

@ -0,0 +1,5 @@
b'%'
b'=1='
b'=1=2='
b'=str='
b"=b'str'="