[TIP] Skipping with stdlib unittest.py

John Arbash Meinel john at arbash-meinel.com
Fri Jul 24 09:30:08 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jean-Paul Calderone wrote:
> Hi all,
> 
> I'm curious about what other people do when they're using the stdlib unittest
> module and need to skip tests.  Fortunately, in Python 2.7, skipping features
> will be added, but what have people been doing up until now?
> 
> Jean-Paul
> 
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
> 

Writing their own.

bzr, for example, hooks into the TestResult.addError to check to see if
this exception is actually a "TestSkipped" exception, and then changes
how the result is reported.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpp4ZAACgkQJdeBCYSNAAPmdACg01tUbvm+LQ86ZqvGQj5joS3V
p7gAoK4VZDJBfzKJ7DD4/laYgdjFETh+
=+5r0
-----END PGP SIGNATURE-----



More information about the testing-in-python mailing list