MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_binstring

Method test_binstring

Lib/test/test_pickletools.py:423–433  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

421 r"""string quote b'"' not found at both ends of b'"abc\\''""")
422
423 def test_binstring(self):
424 self.check_dis(b"T\x03\x00\x00\x00abc.", '''\
425 0: T BINSTRING 'abc'
426 8: . STOP
427highest protocol among opcodes = 1
428''')
429 self.check_dis(b"T\x02\x00\x00\x00\xc3\xb5.", '''\
430 0: T BINSTRING '\\xc3\\xb5'
431 7: . STOP
432highest protocol among opcodes = 1
433''')
434
435 def test_short_binstring(self):
436 self.check_dis(b"U\x03abc.", '''\

Callers

nothing calls this directly

Calls 1

check_disMethod · 0.95

Tested by

no test coverage detected