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

Method test_memo

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

Source from the content-addressed store, hash-verified

296''', 'memo key 1 has never been stored into')
297
298 def test_memo(self):
299 memo = {}
300 self.check_dis(b'Np1\n.', '''\
301 0: N NONE
302 1: p PUT 1
303 4: . STOP
304highest protocol among opcodes = 0
305''', memo=memo)
306 self.check_dis(b'g1\n.', '''\
307 0: g GET 1
308 3: . STOP
309highest protocol among opcodes = 0
310''', memo=memo)
311
312 def test_mark_pop(self):
313 self.check_dis(b'(N00N.', '''\

Callers

nothing calls this directly

Calls 1

check_disMethod · 0.95

Tested by

no test coverage detected