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

Method test_put_redefined

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

Source from the content-addressed store, hash-verified

249''')
250
251 def test_put_redefined(self):
252 self.check_dis(b'Np1\np1\nq\x01r\x01\x00\x00\x00\x94.', '''\
253 0: N NONE
254 1: p PUT 1
255 4: p PUT 1
256 7: q BINPUT 1
257 9: r LONG_BINPUT 1
258 14: \\x94 MEMOIZE (as 1)
259 15: . STOP
260highest protocol among opcodes = 4
261''')
262
263 def test_put_empty_stack(self):
264 self.check_dis_error(b'p0\n', '''\

Callers

nothing calls this directly

Calls 1

check_disMethod · 0.95

Tested by

no test coverage detected