Ticket #3070 defect closed wontfix

Opened 5 years ago

Last modified 2 months ago

trial writes warnings to stdout

Reported by: exarkun Owned by:
Priority: normal Milestone:
Component: trial Keywords:
Cc: Branch:
Author: Launchpad Bug:

Description

This is weird because the default for warnings is to end up on stderr.

Another problem with this code is that it allows warnings to mess up the formatting done by the reporter. The runner really shouldn't be writing things to stdout, only the reporter should do that.

Change History

1

Changed 5 years ago by exarkun

(In [22777]) Ignore warnings logged in test_stdout

Refs #2941 Refs #3070

:(

2

Changed 5 years ago by glyph

  • status changed from new to closed
  • resolution set to duplicate

Duplicate of #2820.

3

Changed 2 years ago by <automation>

  • owner jml deleted

4

Changed 2 months ago by Julian

  • status changed from closed to reopened
  • resolution duplicate deleted

#2820 is closed, but this appears to still be true?

5

Changed 2 months ago by glyph

  • status changed from reopened to closed
  • resolution set to wontfix

#2820 was really about the use of print as opposed to untilConcludes, not stdout vs. stderr.

I believe that trial ought to keep its current behavior because, as a testing tool, warnings are part of trial's useful output, they're not ancillary information. In fact, most warnings are suppressed in Python, not written to stderr, and Trial explicitly turns them back on in order to associate them with a particular test case.

6

Changed 2 months ago by glyph

Since we're trying to refer to something more productive whenever we close a ticket, I was about to refer you to the ticket for making trial turn on warnings in python 2.7, but it looks like you've found it already. Thanks for working on it :).

Note: See TracTickets for help on using tickets.