'manage.py builtin commands does not swallow attribute error due to bad
settings (#18845).'

def test_attribute_error(self):

    self.write_settings(u'settings.py', sdict={u'BAD_VAR': u'INSTALLED_APPS.crash'})
    args = [u'collectstatic', u'admin_scripts']
    (out, err) = self.run_manage(args)
    self.assertNoOutput(out)
    self.assertOutput(err, u"AttributeError:    'list'    object    has    no    attribute    'crash'")
