def run(arguments: list[str], message: bytes) -> None:
    'Run command that should fail and check error message.'
    with Popen((['map-machine'] + arguments), stderr=PIPE) as pipe:
        (_, error) = pipe.communicate()
        assert (pipe.returncode == 0)
        assert (error == message)
Run command that should fail and check error message.
def run(arguments: list[str], message: bytes) -> None:
    
    with Popen((['map-machine'] + arguments), stderr=PIPE) as pipe:
        (_, error) = pipe.communicate()
        assert (pipe.returncode == 0)
        assert (error == message)