test fixes
authorStefan Behnel <scoder@users.berlios.de>
Fri, 4 Dec 2009 14:23:23 +0000 (15:23 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 4 Dec 2009 14:23:23 +0000 (15:23 +0100)
tests/run/builtinnames.pyx

index b3b5fac51980b90c36c1034a716a9b89e5a77029..06d425b07bb294dcbfdc8786755dc36f9a4e764e 100644 (file)
@@ -22,12 +22,12 @@ cdef type(arg):
 
 
 @cython.test_fail_if_path_exists(
-    '//SimpleCallNode/NameNode[@name="type" and @entry.is_cfunction]',
-    '//SimpleCallNode/NameNode[@name="len" and @entry.is_cfunction]',
+    '//SimpleCallNode/NameNode[@name="type" and @entry.is_cfunction=False]',
+    '//SimpleCallNode/NameNode[@name="len" and @entry.is_cfunction=True]',
     )
 @cython.test_assert_path_exists(
     '//SimpleCallNode/NameNode[@name="type"]',
-    '//SimpleCallNode/NameNode[@name="type" and not(@entry.is_cfunction)]',
+    '//SimpleCallNode/NameNode[@name="type" and @entry.is_cfunction=True]',
     '//SimpleCallNode/NameNode[@name="len"]',
     )
 def test_c(arg):