Catch/suppress warnings

James Laska jlaska at redhat.com
Tue Jan 20 14:20:51 UTC 2009


Greetings folks,

I'm finishing up some work for Chris Lumens to add unittests into
pykickstart.  I'm trying to reduce the expected noise of some tests and
would like to capture or suppress any warnings displayed.  

Chris directed me to
http://docs.python.org/library/warnings.html#temporarily-suppressing-warnings, which most likely works.  But I'm looking for something a bit more backwards compatible (that doesn't use the new with: syntax).

Any suggestions or experiences to share?

Thanks,
James

-- 
==========================================
 James Laska         -- jlaska at redhat.com
 Quality Engineering -- Red Hat, Inc.
==========================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-python-devel-list/attachments/20090120/a7e45d23/attachment.sig>


More information about the Fedora-python-devel-list mailing list