From f3a7e76ba0161d378ac9bf35ff5a0be13678f5e7 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 27 Jan 2013 15:12:02 +0100 Subject: [PATCH] fix doctest dependency on dict order --- tests/run/control_flow_stack_allocation.pyx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/run/control_flow_stack_allocation.pyx b/tests/run/control_flow_stack_allocation.pyx index 3dcfee5..b1756f1 100644 --- a/tests/run/control_flow_stack_allocation.pyx +++ b/tests/run/control_flow_stack_allocation.pyx @@ -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 -- 2.7.4