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

Method test_short_binstring

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

Source from the content-addressed store, hash-verified

433''')
434
435 def test_short_binstring(self):
436 self.check_dis(b"U\x03abc.", '''\
437 0: U SHORT_BINSTRING 'abc'
438 5: . STOP
439highest protocol among opcodes = 1
440''')
441 self.check_dis(b"U\x02\xc3\xb5.", '''\
442 0: U SHORT_BINSTRING '\\xc3\\xb5'
443 4: . STOP
444highest protocol among opcodes = 1
445''')
446
447 def test_global(self):
448 self.check_dis(b"cmodule\nname\n.", '''\

Callers

nothing calls this directly

Calls 1

check_disMethod · 0.95

Tested by

no test coverage detected