This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pekka.klarck
Recipients hpk, pekka.klarck, srid, vinay.sajip
Date 2012-03-08.14:54:37
SpamBayes Score 3.7716463e-10
Marked as misclassified No
Message-id <>
The same problem that caused problems to py.test caused problems also to Robot Framework:

I was surprised to notice this issue was closed as invalid although the problem didn't occur with Python 2.7 anymore. After a little more digging I noticed that the proposed fix has actually been done in r84282 as part of fixing issue 9051. The fix doesn't check for `closed` attribute but instead silences possible ValueError.

We also noticed a variation of the problem: If the registered handler ever tries to write anything to its stream you also get an exception. We decided to silence all these errors with this code:

import logging
logging.raiseExceptions = False

Finally, I consider it a separate bug that logging.StreamHandler uses sys.stderr by default. It should use sys.__stderr__ instead.
Date User Action Args
2012-03-08 14:54:39pekka.klarcksetrecipients: + pekka.klarck, vinay.sajip, srid, hpk
2012-03-08 14:54:39pekka.klarcksetmessageid: <>
2012-03-08 14:54:38pekka.klarcklinkissue6333 messages
2012-03-08 14:54:38pekka.klarckcreate