{{{
$ ./manage.py test --buffer --pdb
Testing against Django installed in
'/Users/chainz/Documents/Projects/django/django'
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
...............F
}}}
Since `stdin` isn't patched, one can enter commands into PDB but not see
the output, which is kind of useless. It's also really unclear how to
recover, since Ctrl-C doesn't work on the PDB prompt.
The solution would be to undo `--buffer`'s patching before opening PDB.
--
Ticket URL: <https://code.djangoproject.com/ticket/32560>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32560#comment:1>
* needs_docs: 0 => 1
* version: dev => 3.1
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
Comment:
Thanks for the report. Marking as a release blocker because it's a bug in
the new feature (see #27430 and 9e565386d3fafc8cc15d07095e50d574e5f53802).
--
Ticket URL: <https://code.djangoproject.com/ticket/32560#comment:2>
* needs_docs: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/32560#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"45814af6197cfd8f4dc72ee43b90ecde305a1d5a" 45814af]:
{{{
#!CommitTicketReference repository=""
revision="45814af6197cfd8f4dc72ee43b90ecde305a1d5a"
Fixed #32560 -- Fixed test runner with --pdb and --buffer on fail/error.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32560#comment:4>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"46bdc3eaf08d24d5fad3823bb75f5f47b9ede1a9" 46bdc3e]:
{{{
#!CommitTicketReference repository=""
revision="46bdc3eaf08d24d5fad3823bb75f5f47b9ede1a9"
[3.2.x] Fixed #32560 -- Fixed test runner with --pdb and --buffer on
fail/error.
Backport of 45814af6197cfd8f4dc72ee43b90ecde305a1d5a from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32560#comment:5>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"95ee8fecb53c27ef3a6f5feefb04d744dc8b894b" 95ee8fec]:
{{{
#!CommitTicketReference repository=""
revision="95ee8fecb53c27ef3a6f5feefb04d744dc8b894b"
[3.1.x] Fixed #32560 -- Fixed test runner with --pdb and --buffer on
fail/error.
Backport of 45814af6197cfd8f4dc72ee43b90ecde305a1d5a from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32560#comment:6>