@@ -485,41 +485,6 @@ is_uniquely_referenced(PyObject *self, PyObject *op)
485485}
486486
487487
488- static PyObject *
489- object_setattr_null_exc (PyObject * self , PyObject * args )
490- {
491- PyObject * obj , * name ;
492- if (!PyArg_ParseTuple (args , "OO" , & obj , & name )) {
493- return NULL ;
494- }
495-
496- PyErr_SetString (PyExc_ValueError , "error" );
497- if (PyObject_SetAttr (obj , name , NULL ) < 0 ) {
498- return NULL ;
499- }
500- assert (PyErr_Occurred ());
501- return NULL ;
502- }
503-
504-
505- static PyObject *
506- object_setattrstring_null_exc (PyObject * self , PyObject * args )
507- {
508- PyObject * obj ;
509- const char * name ;
510- if (!PyArg_ParseTuple (args , "Os" , & obj , & name )) {
511- return NULL ;
512- }
513-
514- PyErr_SetString (PyExc_ValueError , "error" );
515- if (PyObject_SetAttrString (obj , name , NULL ) < 0 ) {
516- return NULL ;
517- }
518- assert (PyErr_Occurred ());
519- return NULL ;
520- }
521-
522-
523488static PyMethodDef test_methods [] = {
524489 {"call_pyobject_print" , call_pyobject_print , METH_VARARGS },
525490 {"pyobject_print_null" , pyobject_print_null , METH_VARARGS },
@@ -546,8 +511,6 @@ static PyMethodDef test_methods[] = {
546511 {"test_py_is_funcs" , test_py_is_funcs , METH_NOARGS },
547512 {"clear_managed_dict" , clear_managed_dict , METH_O , NULL },
548513 {"is_uniquely_referenced" , is_uniquely_referenced , METH_O },
549- {"object_setattr_null_exc" , object_setattr_null_exc , METH_VARARGS },
550- {"object_setattrstring_null_exc" , object_setattrstring_null_exc , METH_VARARGS },
551514 {NULL },
552515};
553516
0 commit comments