Ticket #2820 defect closed fixed
trial warning reporting uses print to stdout
| Reported by: | exarkun | Owned by: | jonathanj |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Component: | trial | Keywords: | |
| Cc: | Branch: | branches/leaky-warnings-2820 | |
| Author: | jonathanj | Launchpad Bug: |
Description
See twisted/trial/runner.py:780-784
Using print means that the warning might not actually be reported, since print can fail with EINTR. It also means that what was once structured information (this is a warning, this is the message format string, these are the arguments) becomes unstructured data in a log file; sometimes this is desirable, but it should probably be up to a reporter what is done with the message, not the runner.
Change History
Note: See
TracTickets for help on using
tickets.
