Skip to content

Commit 664bc44

Browse files
committed
tests: Add tests for %-formatting of bytes.
This requires CPython3.5, to not require switching to it, just use .exp file.
1 parent d50f649 commit 664bc44

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This test requires CPython3.5
2+
print(b"%%" % ())
3+
print(b"=%d=" % 1)
4+
print(b"=%d=%d=" % (1, 2))
5+
6+
print(b"=%s=" % b"str")
7+
print(b"=%r=" % b"str")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
b'%'
2+
b'=1='
3+
b'=1=2='
4+
b'=str='
5+
b"=b'str'="

0 commit comments

Comments
 (0)