Tests failures on Saucy: some tests in test_commands.py fail with a CommandError.

Bug #1190962 reported by Raphaël Badin
6
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://docs.djangoproject.com/en/dev/releases/1.5/#minor-features:
"""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.

Tags: django-1.5

Related branches

Raphaël Badin (rvb)
Changed in maas:
assignee: nobody → Raphaël Badin (rvb)
status: Triaged → In Progress
Raphaël Badin (rvb)
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.