From: Stefan Behnel Date: Thu, 25 Nov 2010 20:09:08 +0000 (+0100) Subject: test fixes X-Git-Tag: 0.14.alpha0~80 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=23f8f11f8a05f3fc2dc7dc173162f970fd54cf58;p=cython.git test fixes --- diff --git a/tests/run/genexpr_iterable_lookup_T600.pyx b/tests/run/genexpr_iterable_lookup_T600.pyx index e41148fa..fa64da02 100644 --- a/tests/run/genexpr_iterable_lookup_T600.pyx +++ b/tests/run/genexpr_iterable_lookup_T600.pyx @@ -18,7 +18,7 @@ def list_genexpr_iterable_lookup(): return result @cython.test_assert_path_exists('//ComprehensionNode') -@cython.test_fail_if_path_exists('//SimpleCallNode') +@cython.test_fail_if_path_exists('//SingleAssignmentNode//SimpleCallNode') def genexpr_iterable_in_closure(): """ >>> genexpr_iterable_in_closure() diff --git a/tests/run/list_comp_in_closure_T598.pyx b/tests/run/list_comp_in_closure_T598.pyx index 3f39c9aa..a1a42af7 100644 --- a/tests/run/list_comp_in_closure_T598.pyx +++ b/tests/run/list_comp_in_closure_T598.pyx @@ -37,5 +37,5 @@ def genexpr_scope_in_closure(): return i, x result = list( x*i for x in range(5) if x % 2 == 0 ) assert x == 'abc' # don't leak in Py3 code - assert f() == 2,'abc' # don't leak in Py3 code + assert f() == (2,'abc') # don't leak in Py3 code return result