Commits

Lenard Lindstrom committed f05e97d

Make PgObject_GetBuffer raise a surfarray compatible exception

The assertion on line 420 of surfarray_test.py failed because the wrong
exception was raised. This corrects the fail.

  • Participants
  • Parent commits 147a027

Comments (0)

Files changed (1)

     }
 
     if (!success) {
-        PyErr_Format (PyExc_TypeError,
+        PyErr_Format (PyExc_ValueError,
                       "%s object does not export an array buffer",
                       Py_TYPE (obj)->tp_name);
         return -1;