From 32b9adc98f563b15b1d49a9825d94e852bb645f7 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 16 Feb 2008 19:18:17 +0100 Subject: [PATCH] test: too few arguments to unpack --- tests/run/unpacklistcomp.pyx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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): -- 2.26.2