diff options
Diffstat (limited to 'tests/admin_scripts')
| -rw-r--r-- | tests/admin_scripts/tests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 656736be82..af3ada5bcc 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -1144,7 +1144,11 @@ class ManageSettingsWithSettingsErrors(AdminScriptTestCase): Test listing available commands output note when only core commands are available. """ - self.write_settings('settings.py', sdict={'MEDIA_URL': '"/no_ending_slash"'}) + self.write_settings( + 'settings.py', + extra='from django.core.exceptions import ImproperlyConfigured\n' + 'raise ImproperlyConfigured()', + ) args = ['help'] out, err = self.run_manage(args) self.assertOutput(out, 'only Django core commands are listed') |
