Author brett.cannon
Recipients Arfrever, brett.cannon, kbk, r.david.murray, roger.serwy, terry.reedy, vinay.sajip
Date 2013-06-17.14:56:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Another odd thing about this failure is that should have fixed it as it should be setting warnings.showwarning() back to it's original value before the test began executing. So I checked PyShell again and found out it's being very naughty.

If you look at you will find that it is replacing warnings.formatwarning, and that's a big no-no. While warnings.showwarning is designed to be replaced as a hooking point (, formatwarning is not and is meant to be the default function showwarning calls to produce the string that is to be used in the warning (

My hunch (which I currently can't verify since I'm at work) is that if you stop replacing warnings.formatwarning and instead just have IDLE's showwarning version call its formatting function directly then this failure will go away. The warning about test_idle mucking with warnings.showwarning will still be there until a way to optionally set showwarning is developed, but at least the buildbots should go back to green.
Date User Action Args
2013-06-17 14:56:20brett.cannonsetrecipients: + brett.cannon, terry.reedy, kbk, vinay.sajip, roger.serwy, Arfrever, r.david.murray
2013-06-17 14:56:20brett.cannonsetmessageid: <>
2013-06-17 14:56:20brett.cannonlinkissue18081 messages
2013-06-17 14:56:20brett.cannoncreate