test case from ticket 123
authorStefan Behnel <scoder@users.berlios.de>
Tue, 25 Nov 2008 20:44:25 +0000 (21:44 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 25 Nov 2008 20:44:25 +0000 (21:44 +0100)
tests/run/ticket_123.pyx [new file with mode: 0644]

diff --git a/tests/run/ticket_123.pyx b/tests/run/ticket_123.pyx
new file mode 100644 (file)
index 0000000..91ebee3
--- /dev/null
@@ -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