Tests failures on Saucy: some tests in test_commands.py fail with a CommandError.
Bug #1190962 reported by
Raphaël Badin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Raphaël Badin |
Bug Description
The way call_command() raises error in case the command fails has been changed in Django 1.5.
https:/
"""Management commands do not raise SystemExit any more when called by code from call_command. Any exception raised by the command (mostly CommandError) is propagated."""
This is all for the best — I think — but the problem in MAAS is that we want to be compatible with both Django 1.4 and Django 1.5.
Related branches
lp:~rvb/maas/command-error-bug-1190962
- Jeroen T. Vermeulen (community): Approve
-
Diff: 163 lines (+54/-47)1 file modifiedsrc/maasserver/tests/test_commands.py (+54/-47)
Changed in maas: | |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Released |
Changed in maas: | |
status: | Fix Released → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.