(self)
| 151 | next(it) |
| 152 | |
| 153 | def test_unknown_opcode_without_pos(self): |
| 154 | f = SimpleReader(b'N\xff') |
| 155 | it = pickletools.genops(f) |
| 156 | item = next(it) |
| 157 | self.assertEqual(item[0].name, 'NONE') |
| 158 | with self.assertRaisesRegex(ValueError, |
| 159 | r"at position <unknown>, opcode b'\\xff' unknown"): |
| 160 | next(it) |
| 161 | |
| 162 | |
| 163 | class DisTests(unittest.TestCase): |
nothing calls this directly
no test coverage detected