From b555a0b789fa4f21875e4fa356cd9455aef16879 Mon Sep 17 00:00:00 2001 From: Alfonso Roman Zubeldia <19962151+alfonsoromanz@users.noreply.github.com> Date: Tue, 7 Apr 2026 17:40:43 -0300 Subject: [PATCH] test: remove macOS REDUCE_EXPORTS exception workaround The underlying issue was fixed in bitcoin-core/libmultiprocess#268. Remove the workaround that accepted degraded error messages on Darwin. --- test/functional/test_framework/ipc_util.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/test/functional/test_framework/ipc_util.py b/test/functional/test_framework/ipc_util.py index 03e3b5d511b..0e10b90e023 100644 --- a/test/functional/test_framework/ipc_util.py +++ b/test/functional/test_framework/ipc_util.py @@ -10,7 +10,6 @@ from dataclasses import dataclass from io import BytesIO from pathlib import Path import shutil -import platform from typing import Optional from test_framework.messages import CBlock @@ -161,12 +160,5 @@ async def make_mining_ctx(self): return ctx, mining def assert_capnp_failed(e, description_prefix): - if e.description == "remote exception: unknown non-KJ exception of type: kj::Exception": - # macOS + REDUCE_EXPORTS bug: Cap'n Proto fails to recognize - # its own exception type and returns a generic error instead. - # https://github.com/bitcoin/bitcoin/pull/34422#discussion_r2863852691 - # Assert this only occurs on Darwin until fixed. - assert_equal(platform.system(), "Darwin") - else: - assert e.description.startswith(description_prefix), f"Expected description starting with '{description_prefix}', got '{e.description}'" + assert e.description.startswith(description_prefix), f"Expected description starting with '{description_prefix}', got '{e.description}'" assert_equal(e.type, "FAILED")