fix doctest dependency on dict order
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 27 Jan 2013 14:12:02 +0000 (15:12 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 27 Jan 2013 14:12:02 +0000 (15:12 +0100)
tests/run/control_flow_stack_allocation.pyx

index 3dcfee5..b1756f1 100644 (file)
@@ -21,8 +21,11 @@ cdef stack_alloc_test(int[2] array_arg, S struct_arg):
 
 def test():
     """
-    >>> test()
-    ([0, 1], {'y': 2.0, 'x': 1})
+    >>> a,d = test()
+    >>> a
+    [0, 1]
+    >>> sorted(d.items())
+    [('x', 1), ('y', 2.0)]
     """
     cdef int[2] array_var
     cdef S struct_var