From: Stefan Behnel Date: Tue, 25 May 2010 07:00:47 +0000 (+0200) Subject: revert test fix after reverting comprehension change X-Git-Tag: 0.13.beta0~2^2~51 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a2e8d257e5454f08ec60508f3c55f0ad40015eef;p=cython.git revert test fix after reverting comprehension change --- diff --git a/tests/run/locals_expressions_T430.pyx b/tests/run/locals_expressions_T430.pyx index f05c5be2..535c8045 100644 --- a/tests/run/locals_expressions_T430.pyx +++ b/tests/run/locals_expressions_T430.pyx @@ -6,7 +6,7 @@ __doc__ = u""" [('args', (2, 3)), ('kwds', {'k': 5}), ('x', 1), ('y', 'hi'), ('z', 5)] >>> sorted(get_locals_items_listcomp(1,2,3, k=5)) -[('args', (2, 3)), ('kwds', {'k': 5}), ('x', 1), ('y', 'hi'), ('z', 5)] +[('args', (2, 3)), 'item', None), ('kwds', {'k': 5}), ('x', 1), ('y', 'hi'), ('z', 5)] """ def get_locals(x, *args, **kwds): @@ -20,6 +20,7 @@ def get_locals_items(x, *args, **kwds): return locals().items() def get_locals_items_listcomp(x, *args, **kwds): + # FIXME: 'item' should *not* appear in locals() ! cdef int z = 5 y = "hi" return [ item for item in locals().items() ]