From a2e8d257e5454f08ec60508f3c55f0ad40015eef Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 25 May 2010 09:00:47 +0200 Subject: [PATCH] revert test fix after reverting comprehension change --- tests/run/locals_expressions_T430.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() ] -- 2.26.2