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-warning..., 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