extended test case to make sure the ref-count optimisation strikes
authorStefan Behnel <scoder@users.berlios.de>
Wed, 28 Oct 2009 07:02:03 +0000 (08:02 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Wed, 28 Oct 2009 07:02:03 +0000 (08:02 +0100)
tests/run/parallel_swap_assign_T425.pyx

index 18db9c0dc6bc0e02f0f4b0becb29c3d0aea7757a..89070e4ada59fd83ffcc9e972e0841c6e422c619 100644 (file)
@@ -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):
     """