[Python-Dev] testing question

Michael Hudson mwh@python.net
27 Nov 2002 15:12:43 +0000

Skip Montanaro <skip@pobox.com> writes:

>     Michael> There's a buglet in my assignable __bases__ code that can (in
>     Michael> pretty obscure situations) lead to Python code getting executed
>     Michael> with an exception pending.  I have a fix, but I'd like a test
>     Michael> -- can anyone think of a way of testing for this?
> If it's too hard to implement in Python code, why not add something to
> Modules/_testcapimodule.c?

That would be harder, I think...


> I think you're talking about the code near the end of
> type_set_bases().  I still don't understand why you can'y just bail
> out?

I'm going to.  But I'd still like a test against the old behaviour.
It's not a big deal.


  I don't have any special knowledge of all this. In fact, I made all
  the above up, in the hope that it corresponds to reality.
                                            -- Mark Carroll, ucam.chat