From: Stefan Behnel Date: Sat, 16 Feb 2008 18:18:17 +0000 (+0100) Subject: test: too few arguments to unpack X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=32b9adc98f563b15b1d49a9825d94e852bb645f7;p=cython.git test: too few arguments to unpack --- diff --git a/tests/run/unpacklistcomp.pyx b/tests/run/unpacklistcomp.pyx index c6a2dde7..ada61923 100644 --- a/tests/run/unpacklistcomp.pyx +++ b/tests/run/unpacklistcomp.pyx @@ -4,18 +4,27 @@ __doc__ = """ >>> unpack_normal([1,2,3]) Traceback (most recent call last): ValueError: too many values to unpack + >>> unpack_normal([1]) + Traceback (most recent call last): + ValueError: need more than 1 values to unpack >>> unpack_comp([1,2]) (1, 2) >>> unpack_comp([1,2,3]) Traceback (most recent call last): ValueError: too many values to unpack + >>> unpack_comp([1]) + Traceback (most recent call last): + ValueError: need more than 1 values to unpack >>> unpack_expr([1,2]) - (1, 2) + (1, 4) >>> unpack_expr([1,2,3]) Traceback (most recent call last): ValueError: too many values to unpack + >>> unpack_expr([1]) + Traceback (most recent call last): + ValueError: need more than 1 values to unpack """ def unpack_normal(l):