'Non-ASCII message of CommandError does not raise any
UnicodeDecodeError in run_from_argv.'

def test_run_from_argv_non_ascii_error(self):

    def raise_command_error(*args, **kwargs):
        raise CommandError('Erreur    personnalis\xc3\xa9e')
    command = BaseCommand(stderr=StringIO())
    command.execute = raise_command_error
    with self.assertRaises(SystemExit):
        command.run_from_argv(['', ''])
