From d7115decacd43e3d4e5de26427d23299aca96e63 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 28 Oct 2009 08:02:03 +0100 Subject: [PATCH] extended test case to make sure the ref-count optimisation strikes --- tests/run/parallel_swap_assign_T425.pyx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/run/parallel_swap_assign_T425.pyx b/tests/run/parallel_swap_assign_T425.pyx index 18db9c0d..89070e4a 100644 --- a/tests/run/parallel_swap_assign_T425.pyx +++ b/tests/run/parallel_swap_assign_T425.pyx @@ -85,11 +85,14 @@ cdef class A: @cython.test_assert_path_exists( "//ParallelAssignmentNode", "//ParallelAssignmentNode/SingleAssignmentNode", + "//ParallelAssignmentNode/SingleAssignmentNode/CoerceToTempNode", + "//ParallelAssignmentNode/SingleAssignmentNode/CoerceToTempNode[@use_managed_ref=False]", "//ParallelAssignmentNode/SingleAssignmentNode//AttributeNode/NameNode", "//ParallelAssignmentNode/SingleAssignmentNode//AttributeNode[@use_managed_ref=False]/NameNode", ) @cython.test_fail_if_path_exists( -# "//ParallelAssignmentNode/SingleAssignmentNode//AttributeNode[@use_managed_ref=True]", + "//ParallelAssignmentNode/SingleAssignmentNode/CoerceToTempNode[@use_managed_ref=True]", + "//ParallelAssignmentNode/SingleAssignmentNode/AttributeNode[@use_managed_ref=True]", ) def swap_attr_values(A a, A b): """ -- 2.26.2