diff --git a/tests/basics/bytes_format_modulo.py b/tests/basics/bytes_format_modulo.py new file mode 100644 index 0000000000..70246e72dc --- /dev/null +++ b/tests/basics/bytes_format_modulo.py @@ -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") diff --git a/tests/basics/bytes_format_modulo.py.exp b/tests/basics/bytes_format_modulo.py.exp new file mode 100644 index 0000000000..782b7f91fc --- /dev/null +++ b/tests/basics/bytes_format_modulo.py.exp @@ -0,0 +1,5 @@ +b'%' +b'=1=' +b'=1=2=' +b'=str=' +b"=b'str'="