#32560 closed Bug (fixed)
Make --pdb cooperate with --buffer
Reported by: | Adam Johnson | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | 3.1 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When running test --buffer --pdb
, a failure will open pdb but its output isn't seen:
$ ./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.
Change History (6)
comment:1 by , 4 years ago
Has patch: | set |
---|
comment:2 by , 4 years ago
Needs documentation: | set |
---|---|
Severity: | Normal → Release blocker |
Triage Stage: | Unreviewed → Accepted |
Version: | dev → 3.1 |
comment:3 by , 4 years ago
Needs documentation: | unset |
---|---|
Triage Stage: | Accepted → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
Thanks for the report. Marking as a release blocker because it's a bug in the new feature (see #27430 and 9e565386d3fafc8cc15d07095e50d574e5f53802).