| 332 | # %b will insert a series of bytes, either from a type that supports |
| 333 | # the Py_buffer protocol, or something that has a __bytes__ method |
| 334 | class FakeBytes(object): |
| 335 | def __bytes__(self): |
| 336 | return b'123' |
| 337 | fb = FakeBytes() |
| 338 | testcommon(b"%b", b"abc", b"abc") |
| 339 | testcommon(b"%b", bytearray(b"def"), b"def") |
no outgoing calls