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

Method test_put_redefined

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

Source from the content-addressed store, hash-verified

225''')
226
227 def test_put_redefined(self):
228 self.check_dis(b'Np1\np1\nq\x01r\x01\x00\x00\x00\x94.', '''\
229 0: N NONE
230 1: p PUT 1
231 4: p PUT 1
232 7: q BINPUT 1
233 9: r LONG_BINPUT 1
234 14: \\x94 MEMOIZE (as 1)
235 15: . STOP
236highest protocol among opcodes = 4
237''')
238
239 def test_put_empty_stack(self):
240 self.check_dis_error(b'p0\n', '''\

Callers

nothing calls this directly

Calls 1

check_disMethod · 0.95

Tested by

no test coverage detected