revert test fix after reverting comprehension change
authorStefan Behnel <scoder@users.berlios.de>
Tue, 25 May 2010 07:00:47 +0000 (09:00 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 25 May 2010 07:00:47 +0000 (09:00 +0200)
tests/run/locals_expressions_T430.pyx

index f05c5be2e2be1b856e7f73c1681483db67c50cc9..535c8045de6044f010c14b8f61ac1396a79308b9 100644 (file)
@@ -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() ]