import sys print("ui-spaces crash test: starting up", flush=True) print("ui-spaces crash test: about to fail on purpose", file=sys.stderr, flush=True) raise RuntimeError("ui-spaces deliberate crash for the runtime error test")