Commit bb909844 authored by Stefan Behnel's avatar Stefan Behnel

test case for ticket #653

parent 37690679
......@@ -19,6 +19,7 @@ decorators_T593
temp_sideeffects_T654
class_scope_T671
slice2_T636
builtin_subtype_methods_T653
# CPython regression tests that don't current work:
pyregr.test_threadsignals
......
#cython: language_level=2
# mode: run
# ticket: 653
cdef class MyDict(dict):
def test_items(self):
"""
>>> MyDict(a=1, b=2).test_items()
[('a', 1), ('b', 2)]
"""
l = [ (key, value) for key, value in self.items() ]
l.sort()
return l
def test_iteritems(self):
"""
>>> MyDict(a=1, b=2).test_iteritems()
[('a', 1), ('b', 2)]
"""
l = [ (key, value) for key, value in self.iteritems() ]
l.sort()
return l
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment