Message 100189 - Python tracker
Patch based on Brian's patch, with additional cleanup, and use new unittest helpers: skipUnless, assertRaises. And create a custom helper assertStderrEqual instead of "remove_stderr_debug_decorations" for debug builds.