From: Stefan Behnel Date: Fri, 5 Mar 2010 10:49:13 +0000 (+0100) Subject: fix test by splitting it up: errors are now handled by different steps in the pipeline X-Git-Tag: 0.13.beta0~2^2~102^2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f01dec3e9da84d854e46473ac5318de9b135671b;p=cython.git fix test by splitting it up: errors are now handled by different steps in the pipeline --HG-- rename : tests/errors/extended_unpacking_parser.pyx => tests/errors/extended_unpacking_parser2.pyx --- diff --git a/tests/errors/extended_unpacking_parser.pyx b/tests/errors/extended_unpacking_parser.pyx index f7392a88..874985a9 100644 --- a/tests/errors/extended_unpacking_parser.pyx +++ b/tests/errors/extended_unpacking_parser.pyx @@ -1,9 +1,4 @@ -# invalid syntax (as handled by the parser) - -def syntax(): - *a, *b = 1,2,3,4,5 - # wrong size RHS (as handled by the parser) def length1(): @@ -27,12 +22,11 @@ def length_recursive(): _ERRORS = u""" - 5:4: more than 1 starred expression in assignment -10:4: too many values to unpack (expected 2, got 3) -13:4: need more than 1 value to unpack -16:4: need more than 0 values to unpack -19:4: need more than 0 values to unpack -22:4: need more than 0 values to unpack -23:4: need more than 1 value to unpack -26:6: need more than 1 value to unpack + 5:4: too many values to unpack (expected 2, got 3) + 8:4: need more than 1 value to unpack +11:4: need more than 0 values to unpack +14:4: need more than 0 values to unpack +17:4: need more than 0 values to unpack +18:4: need more than 1 value to unpack +21:6: need more than 1 value to unpack """ diff --git a/tests/errors/extended_unpacking_parser2.pyx b/tests/errors/extended_unpacking_parser2.pyx new file mode 100644 index 00000000..62770931 --- /dev/null +++ b/tests/errors/extended_unpacking_parser2.pyx @@ -0,0 +1,11 @@ + +# invalid syntax (as handled by the parser) + +def syntax(): + *a, *b = 1,2,3,4,5 + + +_ERRORS = u""" +5:4: more than 1 starred expression in assignment +5:8: more than 1 starred expression in assignment +"""