From: Stefan Behnel Date: Tue, 25 Nov 2008 20:44:25 +0000 (+0100) Subject: test case from ticket 123 X-Git-Tag: 0.11-beta~215^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=96b73b35263ea0562eb0f71ad79b7dd49400778b;p=cython.git test case from ticket 123 --- diff --git a/tests/run/ticket_123.pyx b/tests/run/ticket_123.pyx new file mode 100644 index 00000000..91ebee38 --- /dev/null +++ b/tests/run/ticket_123.pyx @@ -0,0 +1,24 @@ +__doc__ = u""" +>>> ret = repeat_iter() +>>> for s in ret: +... print s +a +a +b +b +c +c +""" + +def repeat_iter(): + cdef dict e + cdef unicode s + ret = [] + e = {u"A": u"a", u"B": u"b", u"C": u"c"} + for s in e.itervalues(): + ret.append(s) + for s in e.itervalues(): + ret.append(s) + + ret.sort() + return ret