Migrate signals verbose stdout emissions are not capturable
The migrate
command takes a --verbosity
flag that is passed down to emit_pre_migrate_signal
and emit_post_migrate_signal
functions but these are not provided which stdout
the output should be directed to. This makes testing migrate -v2
through call_command
pollute sys.stdout
when it should be directed to the provided stdout
as discovered in https://github.com/django/django/pull/13890#pullrequestreview-579320176
Change History
(6)
Owner: |
changed from nobody to Simon Charette
|
Status: |
new → assigned
|
Triage Stage: |
Unreviewed → Accepted
|
Version: |
3.1 → master
|
Needs documentation: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
PR