MCPcopy Index your code
hub / github.com/python/cpython / test_binstring

Method test_binstring

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

Source from the content-addressed store, hash-verified

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
403highest 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
408highest protocol among opcodes = 1
409''')
410
411 def test_short_binstring(self):
412 self.check_dis(b"U\x03abc.", '''\

Callers

nothing calls this directly

Calls 1

check_disMethod · 0.95

Tested by

no test coverage detected