From: Stefan Behnel Date: Sat, 17 Oct 2009 21:29:50 +0000 (+0200) Subject: Py2 test fixes X-Git-Tag: 0.13.beta0~2^2~121^2~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d79982c1b383242514a145e6de30a21f790c39d9;p=cython.git Py2 test fixes --- diff --git a/tests/run/funcexc_iter_T228.pyx b/tests/run/funcexc_iter_T228.pyx index b3355b42..0fa6563e 100644 --- a/tests/run/funcexc_iter_T228.pyx +++ b/tests/run/funcexc_iter_T228.pyx @@ -45,6 +45,8 @@ True """ import sys +if sys.version_info[0] < 3: + sys.exc_clear() cdef class cy_iterator(object): def __iter__(self): diff --git a/tests/run/funcexceptraise.pyx b/tests/run/funcexceptraise.pyx index 900eee04..669022fc 100644 --- a/tests/run/funcexceptraise.pyx +++ b/tests/run/funcexceptraise.pyx @@ -11,6 +11,8 @@ __doc__ = u""" """ import sys +if sys.version_info[0] < 3: + sys.exc_clear() def foo(): try: