(self)
| 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 |
| 236 | highest protocol among opcodes = 4 |
| 237 | ''') |
| 238 | |
| 239 | def test_put_empty_stack(self): |
| 240 | self.check_dis_error(b'p0\n', '''\ |