def ustr(s, encoding="utf-8"):
        if isinstance(s, str):
            return s
        try:
            return s.decode(encoding)
        except AttributeError:
            return str(s)
Tests that an error is raised when cmd.run_all errors
dataset/ETHPy150Open nigelsmall/httpstream/httpstream/util.py/ustr--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/mac_desktop_test.py/MacDesktopTestCase.test_say_error