Skip to content

Commit 9f9f61e

Browse files
committed
add setitem test
1 parent 0626c0e commit 9f9f61e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_cfg.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ def test_iter_invalid_types(self):
6363
block.extend([Label()])
6464
with self.assertRaises(ValueError):
6565
block.insert(0, Label())
66+
block.append(Instr("NOP"))
67+
with self.assertRaises(ValueError):
68+
block[0] = Label()
69+
with self.assertRaises(ValueError):
70+
block[:] = [Label()]
6671

6772
# Only one jump allowed and only at the end
6873
block = BasicBlock()

0 commit comments

Comments
 (0)