From bd9607bbf9968c78bdcbe0dd2c07b1db7b284723 Mon Sep 17 00:00:00 2001 From: konsti Date: Mon, 27 Jan 2025 21:03:21 +0100 Subject: [PATCH] Properly format test publish error (#11001) --- scripts/publish/test_publish.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/publish/test_publish.py b/scripts/publish/test_publish.py index a7b801601..ef018a3a0 100644 --- a/scripts/publish/test_publish.py +++ b/scripts/publish/test_publish.py @@ -380,7 +380,7 @@ def publish_project(target: str, uv: Path, client: httpx.Client): ) args = [uv, "publish", "--publish-url", publish_url, *extra_args] - result = run(args, cwd=project_dir, env=env, stderr=PIPE) + result = run(args, cwd=project_dir, env=env, text=True, stderr=PIPE) if result.returncode == 0: # Successful upload break @@ -388,7 +388,8 @@ def publish_project(target: str, uv: Path, client: httpx.Client): retries -= 1 if retries > 0: print( - f"Publish failed, retrying after 10s: {result.stderr}", file=sys.stderr + f"Publish failed, retrying after 10s:\n---\n{result.stderr}\n---", + file=sys.stderr, ) sleep(10) else: