def METHOD_NAME():
    """Ensure that a process is run synchronously and times out"""
    p = virtual_environment.Process()
    #
    # If the process times out, it will raise a VirtualEnvironmentError
    # whose message arg will contain any stdout
    #
    expected_stdout = uuid.uuid1().hex
    expected_stderr = uuid.uuid1().hex
    try:
        p.run_blocking(
            sys.executable,
            [
                "-c",
                "import sys, time; sys.stdout.write('"
                + expected_stdout
                + "'); sys.stdout.flush(); sys.stderr.write('"
                + expected_stderr
                + "'); sys.stderr.flush(); time.sleep(2.0)",
            ],
            wait_for_s=0.5,
        ).strip()
    except virtual_environment.VirtualEnvironmentError as exc:
        assert expected_stdout in exc.message
        assert expected_stderr in exc.message