tests: Add tests for %-formatting of bytes.

This requires CPython3.5, to not require switching to it, just use .exp
file.
pull/1730/head
Paul Sokolovsky 2015-12-20 16:54:34 +02:00
rodzic d50f649cf8
commit 664bc44f30
2 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

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

Wyświetl plik

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