I think we should default to turning it *on* for all users, and provide a
`--no-buffer` option to disable this behaviour.
This will improve output for many users, and increase speed for those
projects whose tests currently print a lot of output. It has the risk of
breaking some workflows of extracting information from tests ˙using
`print()`, but since the output is only hidden for passing tests, I think
this should be fairly niche.
--
Ticket URL: <https://code.djangoproject.com/ticket/31543>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Ahmad Abdallah):
+1 on making this change. As already pointed out, eliminating unnecessary
output will increase the speed of running tests. The associated risk of
not seeing debugging print statement can be easily dealt with by using the
--no-buffer option.
This will remove a lot of unnecessary clutter.
--
Ticket URL: <https://code.djangoproject.com/ticket/31543#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/31543#comment:2>
* owner: nobody => alyyasser19
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/31543#comment:3>
* cc: Carlton Gibson (added)
* status: assigned => closed
* resolution: => wontfix
* stage: Accepted => Unreviewed
Comment:
IMO we shouldn't change the current behavior, it's consistent with
Python's `unittest`. Folks who are concerned here can add the `--buffer`
flag (it's not much of a burden.)
--
Ticket URL: <https://code.djangoproject.com/ticket/31543#comment:4>