(self)
| 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 |
| 260 | highest protocol among opcodes = 4 |
| 261 | ''') |
| 262 | |
| 263 | def test_put_empty_stack(self): |
| 264 | self.check_dis_error(b'p0\n', '''\ |