circuitpython/tests/basics/bytes_format_modulo.py
2021-05-03 14:01:18 -07:00

15 lines
222 B
Python

# This test requires CPython3.5
try:
b'' % ()
except TypeError:
print("SKIP")
raise SystemExit
print(b"%%" % ())
print(b"=%d=" % 1)
print(b"=%d=%d=" % (1, 2))
print(b"=%s=" % b"str")
print(b"=%r=" % b"str")