Bug #1588287: fix invalid assertion for 1,2 in debug builds.

Will backport
This commit is contained in:
Neal Norwitz 2006-11-04 19:25:22 +00:00
parent 5310e5078a
commit 85dbec6da7
3 changed files with 5 additions and 0 deletions

View file

@ -532,6 +532,7 @@ seq_for_testlist(struct compiling *c, const node *n)
|| TYPE(n) == listmaker
|| TYPE(n) == testlist_gexp
|| TYPE(n) == testlist_safe
|| TYPE(n) == testlist1
);
seq = asdl_seq_new((NCH(n) + 1) / 2, c->c_arena);