Commits

Brian Kearns committed a1d21ae

partial backout of bef3dc99bdd7 (broke linux tests)

Comments (0)

Files changed (1)

pypy/module/cpyext/test/test_pyerrors.py

              PyErr_NormalizeException(&type, &val, &tb);
              if (type != PyExc_TypeError)
                  Py_RETURN_FALSE;
-             if (val->ob_type != (_typeobject *)PyExc_TypeError)
+             if (val->ob_type != PyExc_TypeError)
                  Py_RETURN_FALSE;
 
              /* Normalize again */
              PyErr_NormalizeException(&type, &val, &tb);
              if (type != PyExc_TypeError)
                  Py_RETURN_FALSE;
-             if (val->ob_type != (_typeobject *)PyExc_TypeError)
+             if (val->ob_type != PyExc_TypeError)
                  Py_RETURN_FALSE;
 
              PyErr_Restore(type, val, tb);