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

Method test_memo

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

Source from the content-addressed store, hash-verified

272''', 'memo key 1 has never been stored into')
273
274 def test_memo(self):
275 memo = {}
276 self.check_dis(b'Np1\n.', '''\
277 0: N NONE
278 1: p PUT 1
279 4: . STOP
280highest protocol among opcodes = 0
281''', memo=memo)
282 self.check_dis(b'g1\n.', '''\
283 0: g GET 1
284 3: . STOP
285highest protocol among opcodes = 0
286''', memo=memo)
287
288 def test_mark_pop(self):
289 self.check_dis(b'(N00N.', '''\

Callers

nothing calls this directly

Calls 1

check_disMethod · 0.95

Tested by

no test coverage detected