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

Method test_short_binstring

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

Source from the content-addressed store, hash-verified

409''')
410
411 def test_short_binstring(self):
412 self.check_dis(b"U\x03abc.", '''\
413 0: U SHORT_BINSTRING 'abc'
414 5: . STOP
415highest protocol among opcodes = 1
416''')
417 self.check_dis(b"U\x02\xc3\xb5.", '''\
418 0: U SHORT_BINSTRING '\\xc3\\xb5'
419 4: . STOP
420highest protocol among opcodes = 1
421''')
422
423 def test_global(self):
424 self.check_dis(b"cmodule\nname\n.", '''\

Callers

nothing calls this directly

Calls 1

check_disMethod · 0.95

Tested by

no test coverage detected