[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib/test test_linuxaudiodev.py,1.1,1.2

Moshe Zadka Moshe Zadka <moshez@math.huji.ac.il>
Fri, 4 Aug 2000 16:11:38 +0300 (IDT)


On Fri, 4 Aug 2000, Thomas Wouters wrote:

> On Fri, Aug 04, 2000 at 05:59:43AM -0700, Moshe Zadka wrote:
> 
> > Log Message:
> > The only error the test suite skips is currently ImportError -- so that's
> > what we raise. If you see a problem with this patch, say so and I'll
> > retract.
> 
> test_support creates a class 'TestSkipped', which has a docstring that
> suggests it can be used in the same way as ImportError. However, it doesn't
> work ! Is that intentional ? The easiest fix to make it work is probably
> making TestSkipped a subclass of ImportError, rather than Error (which it
> is, now.)

Thanks for the tip, Thomas! I didn't know about it -- but I just read
the regrtest.py code, and it seemed to be the only exception it catches.
Why not just add test_support.TestSkipped to the exception it catches
when it catches the ImportError?

--
Moshe Zadka <moshez@math.huji.ac.il>
There is no IGLU cabal.
http://advogato.org/person/moshez