Skip to content

Commit a87752c

Browse files
committed
Add failing test
1 parent a1c57bc commit a87752c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Lib/test/test_capi/test_opt.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,6 +1486,14 @@ def fn(a):
14861486

14871487
fn(A())
14881488

1489+
def test_jit_error_pops(self):
1490+
"""
1491+
Tests that the correct number of pops are inserted into the
1492+
exit stub
1493+
"""
1494+
items = 17 * [None] + [[]]
1495+
with self.assertRaises(TypeError):
1496+
{item for item in items}
14891497

14901498
if __name__ == "__main__":
14911499
unittest.main()

0 commit comments

Comments
 (0)