[Zope3-dev] Re: [Zope-Checkins] CVS: Zope3/lib/python/Persistence - cPersistence.c:1.1.2.12

Chris Withers chrisw@nipltd.com
Wed, 06 Mar 2002 21:56:32 +0000


Jeremy Hylton wrote:
> 
> Update of /cvs-repository/Zope3/lib/python/Persistence
> In directory cvs.zope.org:/tmp/cvs-serv13076
> 
> Modified Files:
>       Tag: Zope-3x-branch
>         cPersistence.c
> Log Message:
> Fix typo in assert.  (Caught by Fred.)
> 
> === Zope3/lib/python/Persistence/cPersistence.c 1.1.2.11 => 1.1.2.12 ===
>         goto err;
>      PyTuple_SET_ITEM(implements, 0, iface);
> -    assert(type->typ_dict != NULL);
> +    assert(type->tp_dict != NULL);
>      r = PyDict_SetItemString(type->tp_dict, "__implements__", implements);
>   err:
>      Py_XDECREF(mod);

Wasn't it caught by a test? If not, there probably should have been a test :-S

cheers,

Chris