From 10ab94e19863d01e6e60a351da5ed2b56045f3e0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 2 Oct 2026 06:49:15 -0500 Subject: [PATCH] [socket] Rename the filter test so pytest collection stays unique The bare test_init module name collided with the external components test; the both defines case now also checks the resolver stays in the build. --- .../socket/{test_init.py => test_socket_source_filter.py} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename tests/unit_tests/components/socket/{test_init.py => test_socket_source_filter.py} (89%) diff --git a/tests/unit_tests/components/socket/test_init.py b/tests/unit_tests/components/socket/test_socket_source_filter.py similarity index 89% rename from tests/unit_tests/components/socket/test_init.py rename to tests/unit_tests/components/socket/test_socket_source_filter.py index f4cd4492b4..3967c9568d 100644 --- a/tests/unit_tests/components/socket/test_init.py +++ b/tests/unit_tests/components/socket/test_socket_source_filter.py @@ -23,7 +23,9 @@ def test_helper_files_filtered_until_required() -> None: Define("USE_SOCKET_IPV4_RESOLVE"), Define("USE_SOCKET_TCP_CLIENT_LINK"), } - assert "tcp_client_link.cpp" not in socket.FILTER_SOURCE_FILES() + filtered = socket.FILTER_SOURCE_FILES() + assert "ipv4_resolve.cpp" not in filtered + assert "tcp_client_link.cpp" not in filtered def test_require_tcp_client_link_pulls_in_the_resolver() -> None: