(self)
| 397 | r"""string quote b'"' not found at both ends of b'"abc\\''""") |
| 398 | |
| 399 | def test_binstring(self): |
| 400 | self.check_dis(b"T\x03\x00\x00\x00abc.", '''\ |
| 401 | 0: T BINSTRING 'abc' |
| 402 | 8: . STOP |
| 403 | highest protocol among opcodes = 1 |
| 404 | ''') |
| 405 | self.check_dis(b"T\x02\x00\x00\x00\xc3\xb5.", '''\ |
| 406 | 0: T BINSTRING '\\xc3\\xb5' |
| 407 | 7: . STOP |
| 408 | highest protocol among opcodes = 1 |
| 409 | ''') |
| 410 | |
| 411 | def test_short_binstring(self): |
| 412 | self.check_dis(b"U\x03abc.", '''\ |