From 96b73b35263ea0562eb0f71ad79b7dd49400778b Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 25 Nov 2008 21:44:25 +0100 Subject: [PATCH] test case from ticket 123 --- tests/run/ticket_123.pyx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/run/ticket_123.pyx 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 -- 2.26.2