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

afa at codespeak.net afa at codespeak.net
Fri Apr 30 18:03:42 CEST 2010


Author: afa
Date: Fri Apr 30 18:03:41 2010
New Revision: 74294

Modified:
   pypy/trunk/pypy/module/cpyext/test/test_cpyext.py
Log:
This test actually passes, when the typo is fixed.


Modified: pypy/trunk/pypy/module/cpyext/test/test_cpyext.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/test/test_cpyext.py	(original)
+++ pypy/trunk/pypy/module/cpyext/test/test_cpyext.py	Fri Apr 30 18:03:41 2010
@@ -568,12 +568,11 @@
         raises(SystemError, module.clear)
 
     def test_new_exception(self):
-        skip("not working yet")
         mod = self.import_extension('foo', [
             ('newexc', 'METH_VARARGS',
              '''
              char *name = PyString_AsString(PyTuple_GetItem(args, 0));
-             return PyExc_NewException(name, PyTuple_GetItem(args, 1),
+             return PyErr_NewException(name, PyTuple_GetItem(args, 1),
                                        PyTuple_GetItem(args, 2));
              '''
              ),



More information about the Pypy-commit mailing list