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

Thomas Wouters thomas@xs4all.net
Fri, 4 Aug 2000 15:19:31 +0200


On Fri, Aug 04, 2000 at 04:11:38PM +0300, Moshe Zadka wrote:

> > 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?

Right. Done. Now to update all those tests that raise ImportError when they
*mean* 'TestSkipped' :)

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!