[pypy-svn] r79829 - pypy/trunk/pypy/module/cpyext/test

afa at codespeak.net afa at codespeak.net
Sat Dec 4 23:15:34 CET 2010


Author: afa
Date: Sat Dec  4 23:15:32 2010
New Revision: 79829

Modified:
   pypy/trunk/pypy/module/cpyext/test/test_pyerrors.py
Log:
Clear exception state, and fix the test


Modified: pypy/trunk/pypy/module/cpyext/test/test_pyerrors.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/test/test_pyerrors.py	(original)
+++ pypy/trunk/pypy/module/cpyext/test/test_pyerrors.py	Sat Dec  4 23:15:32 2010
@@ -157,8 +157,7 @@
                  Py_RETURN_FALSE;
 
              PyErr_Restore(type, val, tb);
-             if (!PyErr_Occurred())
-                 Py_RETURN_FALSE;
+             PyErr_Clear();
              Py_RETURN_TRUE;
              '''
              ),



More information about the Pypy-commit mailing list