Skip to content

ResourceWarning(s) from test_asyncio.test_events.TestPyGetEventLoop.test_get_event_loop_new_process #131645

@graingert

Description

@graingert

Bug report

Bug description:

PYTHONTRACEMALLOC=25 ./python -m unittest test.test_asyncio.test_events -vvv
test_not_implemented (test.test_asyncio.test_events.AbstractEventLoopTests.test_not_implemented) ... ok
test_not_implemented_async (test.test_asyncio.test_events.AbstractEventLoopTests.test_not_implemented_async) ... ok
test_add_fds_after_closing (test.test_asyncio.test_events.EPollEventLoopTests.test_add_fds_after_closing) ... ok
test_add_signal_handler (test.test_asyncio.test_events.EPollEventLoopTests.test_add_signal_handler) ... ok
test_bidirectional_pty (test.test_asyncio.test_events.EPollEventLoopTests.test_bidirectional_pty) ... ok
test_call_later (test.test_asyncio.test_events.EPollEventLoopTests.test_call_later) ... ok
test_call_soon (test.test_asyncio.test_events.EPollEventLoopTests.test_call_soon) ... ok
test_call_soon_threadsafe (test.test_asyncio.test_events.EPollEventLoopTests.test_call_soon_threadsafe) ... ok
test_call_soon_threadsafe_handle_block_cancellation (test.test_asyncio.test_events.EPollEventLoopTests.test_call_soon_threadsafe_handle_block_cancellation) ... ok
test_call_soon_threadsafe_handle_block_check_cancelled (test.test_asyncio.test_events.EPollEventLoopTests.test_call_soon_threadsafe_handle_block_check_cancelled) ... ok
test_call_soon_threadsafe_handle_cancel_other_thread (test.test_asyncio.test_events.EPollEventLoopTests.test_call_soon_threadsafe_handle_cancel_other_thread) ... ok
test_call_soon_threadsafe_handle_cancel_same_thread (test.test_asyncio.test_events.EPollEventLoopTests.test_call_soon_threadsafe_handle_cancel_same_thread) ... ok
test_call_soon_threadsafe_same_thread (test.test_asyncio.test_events.EPollEventLoopTests.test_call_soon_threadsafe_same_thread) ... ok
test_close (test.test_asyncio.test_events.EPollEventLoopTests.test_close) ... ok
test_close_running_event_loop (test.test_asyncio.test_events.EPollEventLoopTests.test_close_running_event_loop) ... ok
test_connect_accepted_socket (test.test_asyncio.test_events.EPollEventLoopTests.test_connect_accepted_socket) ... ok
test_connect_accepted_socket_ssl_timeout_for_plain_socket (test.test_asyncio.test_events.EPollEventLoopTests.test_connect_accepted_socket_ssl_timeout_for_plain_socket) ... ok
test_create_connection (test.test_asyncio.test_events.EPollEventLoopTests.test_create_connection) ... ok
test_create_connection_local_addr (test.test_asyncio.test_events.EPollEventLoopTests.test_create_connection_local_addr) ... ok
test_create_connection_local_addr_in_use (test.test_asyncio.test_events.EPollEventLoopTests.test_create_connection_local_addr_in_use) ... ok
test_create_connection_local_addr_nomatch_family (test.test_asyncio.test_events.EPollEventLoopTests.test_create_connection_local_addr_nomatch_family) ... ok
test_create_connection_local_addr_skip_different_family (test.test_asyncio.test_events.EPollEventLoopTests.test_create_connection_local_addr_skip_different_family) ... ok
test_create_datagram_endpoint (test.test_asyncio.test_events.EPollEventLoopTests.test_create_datagram_endpoint) ... ok
test_create_datagram_endpoint_ipv6 (test.test_asyncio.test_events.EPollEventLoopTests.test_create_datagram_endpoint_ipv6) ... ok
test_create_datagram_endpoint_sock (test.test_asyncio.test_events.EPollEventLoopTests.test_create_datagram_endpoint_sock) ... ok
test_create_server (test.test_asyncio.test_events.EPollEventLoopTests.test_create_server) ... ok
test_create_server_addr_in_use (test.test_asyncio.test_events.EPollEventLoopTests.test_create_server_addr_in_use) ... ok
test_create_server_dual_stack (test.test_asyncio.test_events.EPollEventLoopTests.test_create_server_dual_stack) ... ok
test_create_server_multiple_hosts_ipv4 (test.test_asyncio.test_events.EPollEventLoopTests.test_create_server_multiple_hosts_ipv4) ... ok
test_create_server_multiple_hosts_ipv6 (test.test_asyncio.test_events.EPollEventLoopTests.test_create_server_multiple_hosts_ipv6) ... ok
test_create_server_reuse_port (test.test_asyncio.test_events.EPollEventLoopTests.test_create_server_reuse_port) ... ok
test_create_server_sock (test.test_asyncio.test_events.EPollEventLoopTests.test_create_server_sock) ... ok
test_create_server_ssl (test.test_asyncio.test_events.EPollEventLoopTests.test_create_server_ssl) ... ok
test_create_server_ssl_match_failed (test.test_asyncio.test_events.EPollEventLoopTests.test_create_server_ssl_match_failed) ... ok
test_create_server_ssl_verified (test.test_asyncio.test_events.EPollEventLoopTests.test_create_server_ssl_verified) ... ok
test_create_server_ssl_verify_failed (test.test_asyncio.test_events.EPollEventLoopTests.test_create_server_ssl_verify_failed) ... ok
test_create_server_trsock (test.test_asyncio.test_events.EPollEventLoopTests.test_create_server_trsock) ... ok
test_create_ssl_connection (test.test_asyncio.test_events.EPollEventLoopTests.test_create_ssl_connection) ... ok
test_create_ssl_unix_connection (test.test_asyncio.test_events.EPollEventLoopTests.test_create_ssl_unix_connection) ... ok
test_create_unix_connection (test.test_asyncio.test_events.EPollEventLoopTests.test_create_unix_connection) ... ok
test_create_unix_server (test.test_asyncio.test_events.EPollEventLoopTests.test_create_unix_server) ... ok
test_create_unix_server_path_socket_error (test.test_asyncio.test_events.EPollEventLoopTests.test_create_unix_server_path_socket_error) ... ok
test_create_unix_server_ssl (test.test_asyncio.test_events.EPollEventLoopTests.test_create_unix_server_ssl) ... ok
test_create_unix_server_ssl_verified (test.test_asyncio.test_events.EPollEventLoopTests.test_create_unix_server_ssl_verified) ... ok
test_create_unix_server_ssl_verify_failed (test.test_asyncio.test_events.EPollEventLoopTests.test_create_unix_server_ssl_verify_failed) ... ok
test_datagram_send_to_non_listening_address (test.test_asyncio.test_events.EPollEventLoopTests.test_datagram_send_to_non_listening_address) ... ok
test_internal_fds (test.test_asyncio.test_events.EPollEventLoopTests.test_internal_fds) ... ok
test_prompt_cancellation (test.test_asyncio.test_events.EPollEventLoopTests.test_prompt_cancellation) ... ok
test_read_pipe (test.test_asyncio.test_events.EPollEventLoopTests.test_read_pipe) ... ok
test_read_pty_output (test.test_asyncio.test_events.EPollEventLoopTests.test_read_pty_output) ... ok
test_reader_callback (test.test_asyncio.test_events.EPollEventLoopTests.test_reader_callback) ... ok
test_remove_fds_after_closing (test.test_asyncio.test_events.EPollEventLoopTests.test_remove_fds_after_closing) ... ok
test_run_in_executor (test.test_asyncio.test_events.EPollEventLoopTests.test_run_in_executor) ... ok
test_run_in_executor_cancel (test.test_asyncio.test_events.EPollEventLoopTests.test_run_in_executor_cancel) ... ok
test_run_until_complete (test.test_asyncio.test_events.EPollEventLoopTests.test_run_until_complete) ... ok
test_run_until_complete_nesting (test.test_asyncio.test_events.EPollEventLoopTests.test_run_until_complete_nesting) ... ok
test_run_until_complete_stopped (test.test_asyncio.test_events.EPollEventLoopTests.test_run_until_complete_stopped) ... ok
test_server_close (test.test_asyncio.test_events.EPollEventLoopTests.test_server_close) ... ok
test_signal_handling_args (test.test_asyncio.test_events.EPollEventLoopTests.test_signal_handling_args) ... ok
test_signal_handling_while_selecting (test.test_asyncio.test_events.EPollEventLoopTests.test_signal_handling_while_selecting) ... ok
test_ssl_connect_accepted_socket (test.test_asyncio.test_events.EPollEventLoopTests.test_ssl_connect_accepted_socket) ... ok
test_subprocess_close_after_finish (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_close_after_finish) ... ok
test_subprocess_close_client_stream (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_close_client_stream) ... ok
test_subprocess_exec (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_exec) ... ok
test_subprocess_exec_invalid_args (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_exec_invalid_args) ... ok
test_subprocess_exitcode (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_exitcode) ... ok
test_subprocess_interactive (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_interactive) ... ok
test_subprocess_kill (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_kill) ... ok
test_subprocess_send_signal (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_send_signal) ... ok
test_subprocess_shell (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_shell) ... ok
test_subprocess_shell_invalid_args (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_shell_invalid_args) ... ok
test_subprocess_stderr (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_stderr) ... ok
test_subprocess_stderr_redirect_to_stdout (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_stderr_redirect_to_stdout) ... ok
test_subprocess_terminate (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_terminate) ... ok
test_subprocess_wait_no_same_group (test.test_asyncio.test_events.EPollEventLoopTests.test_subprocess_wait_no_same_group) ... ok
test_timeout_rounding (test.test_asyncio.test_events.EPollEventLoopTests.test_timeout_rounding) ... ok
test_unclosed_pipe_transport (test.test_asyncio.test_events.EPollEventLoopTests.test_unclosed_pipe_transport) ... ok
test_write_pipe (test.test_asyncio.test_events.EPollEventLoopTests.test_write_pipe) ... ok
test_write_pipe_disconnect_on_close (test.test_asyncio.test_events.EPollEventLoopTests.test_write_pipe_disconnect_on_close) ... ok
test_write_pty (test.test_asyncio.test_events.EPollEventLoopTests.test_write_pty) ... ok
test_writer_callback (test.test_asyncio.test_events.EPollEventLoopTests.test_writer_callback) ... ok
test_callback_with_exception (test.test_asyncio.test_events.HandleTests.test_callback_with_exception) ... ok
test_coroutine_like_object_debug_formatting (test.test_asyncio.test_events.HandleTests.test_coroutine_like_object_debug_formatting) ... ok
test_handle (test.test_asyncio.test_events.HandleTests.test_handle) ... ok
test_handle_repr (test.test_asyncio.test_events.HandleTests.test_handle_repr) ... ok
test_handle_repr_debug (test.test_asyncio.test_events.HandleTests.test_handle_repr_debug) ... ok
test_handle_source_traceback (test.test_asyncio.test_events.HandleTests.test_handle_source_traceback) ... ok
test_handle_weakref (test.test_asyncio.test_events.HandleTests.test_handle_weakref) ... ok
test_abstract_event_loop_policy_deprecation (test.test_asyncio.test_events.PolicyTests.test_abstract_event_loop_policy_deprecation) ... ok
test_asyncio_set_event_loop_deprecation (test.test_asyncio.test_events.PolicyTests.test_asyncio_set_event_loop_deprecation) ... ok
test_default_event_loop_policy_deprecation (test.test_asyncio.test_events.PolicyTests.test_default_event_loop_policy_deprecation) ... ok
test_event_loop_policy (test.test_asyncio.test_events.PolicyTests.test_event_loop_policy) ... ok
test_get_event_loop (test.test_asyncio.test_events.PolicyTests.test_get_event_loop) ... ok
test_get_event_loop_after_set_none (test.test_asyncio.test_events.PolicyTests.test_get_event_loop_after_set_none) ... ok
test_get_event_loop_does_not_call_set_event_loop (test.test_asyncio.test_events.PolicyTests.test_get_event_loop_does_not_call_set_event_loop) ... ok
test_get_event_loop_policy (test.test_asyncio.test_events.PolicyTests.test_get_event_loop_policy) ... ok
test_get_event_loop_thread (test.test_asyncio.test_events.PolicyTests.test_get_event_loop_thread) ... ok
test_new_event_loop (test.test_asyncio.test_events.PolicyTests.test_new_event_loop) ... ok
test_set_event_loop (test.test_asyncio.test_events.PolicyTests.test_set_event_loop) ... ok
test_set_event_loop_policy (test.test_asyncio.test_events.PolicyTests.test_set_event_loop_policy) ... ok
test_add_fds_after_closing (test.test_asyncio.test_events.PollEventLoopTests.test_add_fds_after_closing) ... ok
test_add_signal_handler (test.test_asyncio.test_events.PollEventLoopTests.test_add_signal_handler) ... ok
test_bidirectional_pty (test.test_asyncio.test_events.PollEventLoopTests.test_bidirectional_pty) ... ok
test_call_later (test.test_asyncio.test_events.PollEventLoopTests.test_call_later) ... ok
test_call_soon (test.test_asyncio.test_events.PollEventLoopTests.test_call_soon) ... ok
test_call_soon_threadsafe (test.test_asyncio.test_events.PollEventLoopTests.test_call_soon_threadsafe) ... ok
test_call_soon_threadsafe_handle_block_cancellation (test.test_asyncio.test_events.PollEventLoopTests.test_call_soon_threadsafe_handle_block_cancellation) ... ok
test_call_soon_threadsafe_handle_block_check_cancelled (test.test_asyncio.test_events.PollEventLoopTests.test_call_soon_threadsafe_handle_block_check_cancelled) ... ok
test_call_soon_threadsafe_handle_cancel_other_thread (test.test_asyncio.test_events.PollEventLoopTests.test_call_soon_threadsafe_handle_cancel_other_thread) ... ok
test_call_soon_threadsafe_handle_cancel_same_thread (test.test_asyncio.test_events.PollEventLoopTests.test_call_soon_threadsafe_handle_cancel_same_thread) ... ok
test_call_soon_threadsafe_same_thread (test.test_asyncio.test_events.PollEventLoopTests.test_call_soon_threadsafe_same_thread) ... ok
test_close (test.test_asyncio.test_events.PollEventLoopTests.test_close) ... ok
test_close_running_event_loop (test.test_asyncio.test_events.PollEventLoopTests.test_close_running_event_loop) ... ok
test_connect_accepted_socket (test.test_asyncio.test_events.PollEventLoopTests.test_connect_accepted_socket) ... ok
test_connect_accepted_socket_ssl_timeout_for_plain_socket (test.test_asyncio.test_events.PollEventLoopTests.test_connect_accepted_socket_ssl_timeout_for_plain_socket) ... ok
test_create_connection (test.test_asyncio.test_events.PollEventLoopTests.test_create_connection) ... ok
test_create_connection_local_addr (test.test_asyncio.test_events.PollEventLoopTests.test_create_connection_local_addr) ... ok
test_create_connection_local_addr_in_use (test.test_asyncio.test_events.PollEventLoopTests.test_create_connection_local_addr_in_use) ... ok
test_create_connection_local_addr_nomatch_family (test.test_asyncio.test_events.PollEventLoopTests.test_create_connection_local_addr_nomatch_family) ... ok
test_create_connection_local_addr_skip_different_family (test.test_asyncio.test_events.PollEventLoopTests.test_create_connection_local_addr_skip_different_family) ... ok
test_create_datagram_endpoint (test.test_asyncio.test_events.PollEventLoopTests.test_create_datagram_endpoint) ... ok
test_create_datagram_endpoint_ipv6 (test.test_asyncio.test_events.PollEventLoopTests.test_create_datagram_endpoint_ipv6) ... ok
test_create_datagram_endpoint_sock (test.test_asyncio.test_events.PollEventLoopTests.test_create_datagram_endpoint_sock) ... ok
test_create_server (test.test_asyncio.test_events.PollEventLoopTests.test_create_server) ... ok
test_create_server_addr_in_use (test.test_asyncio.test_events.PollEventLoopTests.test_create_server_addr_in_use) ... ok
test_create_server_dual_stack (test.test_asyncio.test_events.PollEventLoopTests.test_create_server_dual_stack) ... ok
test_create_server_multiple_hosts_ipv4 (test.test_asyncio.test_events.PollEventLoopTests.test_create_server_multiple_hosts_ipv4) ... ok
test_create_server_multiple_hosts_ipv6 (test.test_asyncio.test_events.PollEventLoopTests.test_create_server_multiple_hosts_ipv6) ... ok
test_create_server_reuse_port (test.test_asyncio.test_events.PollEventLoopTests.test_create_server_reuse_port) ... ok
test_create_server_sock (test.test_asyncio.test_events.PollEventLoopTests.test_create_server_sock) ... ok
test_create_server_ssl (test.test_asyncio.test_events.PollEventLoopTests.test_create_server_ssl) ... ok
test_create_server_ssl_match_failed (test.test_asyncio.test_events.PollEventLoopTests.test_create_server_ssl_match_failed) ... ok
test_create_server_ssl_verified (test.test_asyncio.test_events.PollEventLoopTests.test_create_server_ssl_verified) ... ok
test_create_server_ssl_verify_failed (test.test_asyncio.test_events.PollEventLoopTests.test_create_server_ssl_verify_failed) ... ok
test_create_server_trsock (test.test_asyncio.test_events.PollEventLoopTests.test_create_server_trsock) ... ok
test_create_ssl_connection (test.test_asyncio.test_events.PollEventLoopTests.test_create_ssl_connection) ... ok
test_create_ssl_unix_connection (test.test_asyncio.test_events.PollEventLoopTests.test_create_ssl_unix_connection) ... ok
test_create_unix_connection (test.test_asyncio.test_events.PollEventLoopTests.test_create_unix_connection) ... ok
test_create_unix_server (test.test_asyncio.test_events.PollEventLoopTests.test_create_unix_server) ... ok
test_create_unix_server_path_socket_error (test.test_asyncio.test_events.PollEventLoopTests.test_create_unix_server_path_socket_error) ... ok
test_create_unix_server_ssl (test.test_asyncio.test_events.PollEventLoopTests.test_create_unix_server_ssl) ... ok
test_create_unix_server_ssl_verified (test.test_asyncio.test_events.PollEventLoopTests.test_create_unix_server_ssl_verified) ... ok
test_create_unix_server_ssl_verify_failed (test.test_asyncio.test_events.PollEventLoopTests.test_create_unix_server_ssl_verify_failed) ... ok
test_datagram_send_to_non_listening_address (test.test_asyncio.test_events.PollEventLoopTests.test_datagram_send_to_non_listening_address) ... ok
test_internal_fds (test.test_asyncio.test_events.PollEventLoopTests.test_internal_fds) ... ok
test_prompt_cancellation (test.test_asyncio.test_events.PollEventLoopTests.test_prompt_cancellation) ... ok
test_read_pipe (test.test_asyncio.test_events.PollEventLoopTests.test_read_pipe) ... ok
test_read_pty_output (test.test_asyncio.test_events.PollEventLoopTests.test_read_pty_output) ... ok
test_reader_callback (test.test_asyncio.test_events.PollEventLoopTests.test_reader_callback) ... ok
test_remove_fds_after_closing (test.test_asyncio.test_events.PollEventLoopTests.test_remove_fds_after_closing) ... ok
test_run_in_executor (test.test_asyncio.test_events.PollEventLoopTests.test_run_in_executor) ... ok
test_run_in_executor_cancel (test.test_asyncio.test_events.PollEventLoopTests.test_run_in_executor_cancel) ... ok
test_run_until_complete (test.test_asyncio.test_events.PollEventLoopTests.test_run_until_complete) ... ok
test_run_until_complete_nesting (test.test_asyncio.test_events.PollEventLoopTests.test_run_until_complete_nesting) ... ok
test_run_until_complete_stopped (test.test_asyncio.test_events.PollEventLoopTests.test_run_until_complete_stopped) ... ok
test_server_close (test.test_asyncio.test_events.PollEventLoopTests.test_server_close) ... ok
test_signal_handling_args (test.test_asyncio.test_events.PollEventLoopTests.test_signal_handling_args) ... ok
test_signal_handling_while_selecting (test.test_asyncio.test_events.PollEventLoopTests.test_signal_handling_while_selecting) ... ok
test_ssl_connect_accepted_socket (test.test_asyncio.test_events.PollEventLoopTests.test_ssl_connect_accepted_socket) ... ok
test_subprocess_close_after_finish (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_close_after_finish) ... ok
test_subprocess_close_client_stream (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_close_client_stream) ... ok
test_subprocess_exec (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_exec) ... ok
test_subprocess_exec_invalid_args (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_exec_invalid_args) ... ok
test_subprocess_exitcode (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_exitcode) ... ok
test_subprocess_interactive (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_interactive) ... ok
test_subprocess_kill (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_kill) ... ok
test_subprocess_send_signal (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_send_signal) ... ok
test_subprocess_shell (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_shell) ... ok
test_subprocess_shell_invalid_args (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_shell_invalid_args) ... ok
test_subprocess_stderr (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_stderr) ... ok
test_subprocess_stderr_redirect_to_stdout (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_stderr_redirect_to_stdout) ... ok
test_subprocess_terminate (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_terminate) ... ok
test_subprocess_wait_no_same_group (test.test_asyncio.test_events.PollEventLoopTests.test_subprocess_wait_no_same_group) ... ok
test_timeout_rounding (test.test_asyncio.test_events.PollEventLoopTests.test_timeout_rounding) ... ok
test_unclosed_pipe_transport (test.test_asyncio.test_events.PollEventLoopTests.test_unclosed_pipe_transport) ... ok
test_write_pipe (test.test_asyncio.test_events.PollEventLoopTests.test_write_pipe) ... ok
test_write_pipe_disconnect_on_close (test.test_asyncio.test_events.PollEventLoopTests.test_write_pipe_disconnect_on_close) ... ok
test_write_pty (test.test_asyncio.test_events.PollEventLoopTests.test_write_pty) ... ok
test_writer_callback (test.test_asyncio.test_events.PollEventLoopTests.test_writer_callback) ... ok
test_add_fds_after_closing (test.test_asyncio.test_events.SelectEventLoopTests.test_add_fds_after_closing) ... ok
test_add_signal_handler (test.test_asyncio.test_events.SelectEventLoopTests.test_add_signal_handler) ... ok
test_bidirectional_pty (test.test_asyncio.test_events.SelectEventLoopTests.test_bidirectional_pty) ... ok
test_call_later (test.test_asyncio.test_events.SelectEventLoopTests.test_call_later) ... ok
test_call_soon (test.test_asyncio.test_events.SelectEventLoopTests.test_call_soon) ... ok
test_call_soon_threadsafe (test.test_asyncio.test_events.SelectEventLoopTests.test_call_soon_threadsafe) ... ok
test_call_soon_threadsafe_handle_block_cancellation (test.test_asyncio.test_events.SelectEventLoopTests.test_call_soon_threadsafe_handle_block_cancellation) ... ok
test_call_soon_threadsafe_handle_block_check_cancelled (test.test_asyncio.test_events.SelectEventLoopTests.test_call_soon_threadsafe_handle_block_check_cancelled) ... ok
test_call_soon_threadsafe_handle_cancel_other_thread (test.test_asyncio.test_events.SelectEventLoopTests.test_call_soon_threadsafe_handle_cancel_other_thread) ... ok
test_call_soon_threadsafe_handle_cancel_same_thread (test.test_asyncio.test_events.SelectEventLoopTests.test_call_soon_threadsafe_handle_cancel_same_thread) ... ok
test_call_soon_threadsafe_same_thread (test.test_asyncio.test_events.SelectEventLoopTests.test_call_soon_threadsafe_same_thread) ... ok
test_close (test.test_asyncio.test_events.SelectEventLoopTests.test_close) ... ok
test_close_running_event_loop (test.test_asyncio.test_events.SelectEventLoopTests.test_close_running_event_loop) ... ok
test_connect_accepted_socket (test.test_asyncio.test_events.SelectEventLoopTests.test_connect_accepted_socket) ... ok
test_connect_accepted_socket_ssl_timeout_for_plain_socket (test.test_asyncio.test_events.SelectEventLoopTests.test_connect_accepted_socket_ssl_timeout_for_plain_socket) ... ok
test_create_connection (test.test_asyncio.test_events.SelectEventLoopTests.test_create_connection) ... ok
test_create_connection_local_addr (test.test_asyncio.test_events.SelectEventLoopTests.test_create_connection_local_addr) ... ok
test_create_connection_local_addr_in_use (test.test_asyncio.test_events.SelectEventLoopTests.test_create_connection_local_addr_in_use) ... ok
test_create_connection_local_addr_nomatch_family (test.test_asyncio.test_events.SelectEventLoopTests.test_create_connection_local_addr_nomatch_family) ... ok
test_create_connection_local_addr_skip_different_family (test.test_asyncio.test_events.SelectEventLoopTests.test_create_connection_local_addr_skip_different_family) ... ok
test_create_datagram_endpoint (test.test_asyncio.test_events.SelectEventLoopTests.test_create_datagram_endpoint) ... ok
test_create_datagram_endpoint_ipv6 (test.test_asyncio.test_events.SelectEventLoopTests.test_create_datagram_endpoint_ipv6) ... ok
test_create_datagram_endpoint_sock (test.test_asyncio.test_events.SelectEventLoopTests.test_create_datagram_endpoint_sock) ... ok
test_create_server (test.test_asyncio.test_events.SelectEventLoopTests.test_create_server) ... ok
test_create_server_addr_in_use (test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_addr_in_use) ... ok
test_create_server_dual_stack (test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_dual_stack) ... ok
test_create_server_multiple_hosts_ipv4 (test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_multiple_hosts_ipv4) ... ok
test_create_server_multiple_hosts_ipv6 (test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_multiple_hosts_ipv6) ... ok
test_create_server_reuse_port (test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_reuse_port) ... ok
test_create_server_sock (test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_sock) ... ok
test_create_server_ssl (test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_ssl) ... ok
test_create_server_ssl_match_failed (test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_ssl_match_failed) ... ok
test_create_server_ssl_verified (test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_ssl_verified) ... ok
test_create_server_ssl_verify_failed (test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_ssl_verify_failed) ... ok
test_create_server_trsock (test.test_asyncio.test_events.SelectEventLoopTests.test_create_server_trsock) ... ok
test_create_ssl_connection (test.test_asyncio.test_events.SelectEventLoopTests.test_create_ssl_connection) ... ok
test_create_ssl_unix_connection (test.test_asyncio.test_events.SelectEventLoopTests.test_create_ssl_unix_connection) ... ok
test_create_unix_connection (test.test_asyncio.test_events.SelectEventLoopTests.test_create_unix_connection) ... ok
test_create_unix_server (test.test_asyncio.test_events.SelectEventLoopTests.test_create_unix_server) ... ok
test_create_unix_server_path_socket_error (test.test_asyncio.test_events.SelectEventLoopTests.test_create_unix_server_path_socket_error) ... ok
test_create_unix_server_ssl (test.test_asyncio.test_events.SelectEventLoopTests.test_create_unix_server_ssl) ... ok
test_create_unix_server_ssl_verified (test.test_asyncio.test_events.SelectEventLoopTests.test_create_unix_server_ssl_verified) ... ok
test_create_unix_server_ssl_verify_failed (test.test_asyncio.test_events.SelectEventLoopTests.test_create_unix_server_ssl_verify_failed) ... ok
test_datagram_send_to_non_listening_address (test.test_asyncio.test_events.SelectEventLoopTests.test_datagram_send_to_non_listening_address) ... ok
test_internal_fds (test.test_asyncio.test_events.SelectEventLoopTests.test_internal_fds) ... ok
test_prompt_cancellation (test.test_asyncio.test_events.SelectEventLoopTests.test_prompt_cancellation) ... ok
test_read_pipe (test.test_asyncio.test_events.SelectEventLoopTests.test_read_pipe) ... ok
test_read_pty_output (test.test_asyncio.test_events.SelectEventLoopTests.test_read_pty_output) ... ok
test_reader_callback (test.test_asyncio.test_events.SelectEventLoopTests.test_reader_callback) ... ok
test_remove_fds_after_closing (test.test_asyncio.test_events.SelectEventLoopTests.test_remove_fds_after_closing) ... ok
test_run_in_executor (test.test_asyncio.test_events.SelectEventLoopTests.test_run_in_executor) ... ok
test_run_in_executor_cancel (test.test_asyncio.test_events.SelectEventLoopTests.test_run_in_executor_cancel) ... ok
test_run_until_complete (test.test_asyncio.test_events.SelectEventLoopTests.test_run_until_complete) ... ok
test_run_until_complete_nesting (test.test_asyncio.test_events.SelectEventLoopTests.test_run_until_complete_nesting) ... ok
test_run_until_complete_stopped (test.test_asyncio.test_events.SelectEventLoopTests.test_run_until_complete_stopped) ... ok
test_server_close (test.test_asyncio.test_events.SelectEventLoopTests.test_server_close) ... ok
test_signal_handling_args (test.test_asyncio.test_events.SelectEventLoopTests.test_signal_handling_args) ... ok
test_signal_handling_while_selecting (test.test_asyncio.test_events.SelectEventLoopTests.test_signal_handling_while_selecting) ... ok
test_ssl_connect_accepted_socket (test.test_asyncio.test_events.SelectEventLoopTests.test_ssl_connect_accepted_socket) ... ok
test_subprocess_close_after_finish (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_close_after_finish) ... ok
test_subprocess_close_client_stream (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_close_client_stream) ... ok
test_subprocess_exec (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_exec) ... ok
test_subprocess_exec_invalid_args (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_exec_invalid_args) ... ok
test_subprocess_exitcode (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_exitcode) ... ok
test_subprocess_interactive (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_interactive) ... ok
test_subprocess_kill (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_kill) ... ok
test_subprocess_send_signal (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_send_signal) ... ok
test_subprocess_shell (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_shell) ... ok
test_subprocess_shell_invalid_args (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_shell_invalid_args) ... ok
test_subprocess_stderr (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_stderr) ... ok
test_subprocess_stderr_redirect_to_stdout (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_stderr_redirect_to_stdout) ... ok
test_subprocess_terminate (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_terminate) ... ok
test_subprocess_wait_no_same_group (test.test_asyncio.test_events.SelectEventLoopTests.test_subprocess_wait_no_same_group) ... ok
test_timeout_rounding (test.test_asyncio.test_events.SelectEventLoopTests.test_timeout_rounding) ... ok
test_unclosed_pipe_transport (test.test_asyncio.test_events.SelectEventLoopTests.test_unclosed_pipe_transport) ... ok
test_write_pipe (test.test_asyncio.test_events.SelectEventLoopTests.test_write_pipe) ... ok
test_write_pipe_disconnect_on_close (test.test_asyncio.test_events.SelectEventLoopTests.test_write_pipe_disconnect_on_close) ... ok
test_write_pty (test.test_asyncio.test_events.SelectEventLoopTests.test_write_pty) ... ok
test_writer_callback (test.test_asyncio.test_events.SelectEventLoopTests.test_writer_callback) ... ok
test_close (test.test_asyncio.test_events.TestAbstractServer.test_close) ... ok
test_get_loop (test.test_asyncio.test_events.TestAbstractServer.test_get_loop) ... ok
test_wait_closed (test.test_asyncio.test_events.TestAbstractServer.test_wait_closed) ... ok
test_get_event_loop_new_process (test.test_asyncio.test_events.TestCGetEventLoop.test_get_event_loop_new_process) ... ok
test_get_event_loop_returns_running_loop (test.test_asyncio.test_events.TestCGetEventLoop.test_get_event_loop_returns_running_loop) ... ok
test_get_event_loop_returns_running_loop2 (test.test_asyncio.test_events.TestCGetEventLoop.test_get_event_loop_returns_running_loop2) ... ok
test_get_running_loop_already_running (test.test_asyncio.test_events.TestCGetEventLoop.test_get_running_loop_already_running) ... ok
test_get_event_loop_new_process (test.test_asyncio.test_events.TestPyGetEventLoop.test_get_event_loop_new_process) ... /home/graingert/projects/cpython/Lib/asyncio/base_events.py:758: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
  _warn(f"unclosed event loop {self!r}", ResourceWarning, source=self)
Object allocated at (most recent call last):
  File "<frozen runpy>", lineno 198
  File "<frozen runpy>", lineno 88
  File "/home/graingert/projects/cpython/Lib/unittest/__main__.py", lineno 18
    main(module=None)
  File "/home/graingert/projects/cpython/Lib/unittest/main.py", lineno 104
    self.runTests()
  File "/home/graingert/projects/cpython/Lib/unittest/main.py", lineno 270
    self.result = testRunner.run(self.test)
  File "/home/graingert/projects/cpython/Lib/unittest/runner.py", lineno 259
    test(result)
  File "/home/graingert/projects/cpython/Lib/unittest/suite.py", lineno 84
    return self.run(*args, **kwds)
  File "/home/graingert/projects/cpython/Lib/unittest/suite.py", lineno 122
    test(result)
  File "/home/graingert/projects/cpython/Lib/unittest/suite.py", lineno 84
    return self.run(*args, **kwds)
  File "/home/graingert/projects/cpython/Lib/unittest/suite.py", lineno 122
    test(result)
  File "/home/graingert/projects/cpython/Lib/unittest/suite.py", lineno 84
    return self.run(*args, **kwds)
  File "/home/graingert/projects/cpython/Lib/unittest/suite.py", lineno 122
    test(result)
  File "/home/graingert/projects/cpython/Lib/unittest/case.py", lineno 716
    return self.run(*args, **kwds)
  File "/home/graingert/projects/cpython/Lib/unittest/case.py", lineno 660
    self._callTestMethod(testMethod)
  File "/home/graingert/projects/cpython/Lib/unittest/case.py", lineno 606
    result = method()
  File "/home/graingert/projects/cpython/Lib/test/test_asyncio/test_events.py", lineno 3018
    self.loop.run_until_complete(main())
  File "/home/graingert/projects/cpython/Lib/asyncio/base_events.py", lineno 706
    self.run_forever()
  File "/home/graingert/projects/cpython/Lib/asyncio/base_events.py", lineno 677
    self._run_once()
  File "/home/graingert/projects/cpython/Lib/asyncio/base_events.py", lineno 2037
    handle._run()
  File "/home/graingert/projects/cpython/Lib/asyncio/events.py", lineno 98
    self._context.run(self._callback, *self._args)
  File "/home/graingert/projects/cpython/Lib/test/test_asyncio/test_events.py", lineno 3008
    loop = asyncio.new_event_loop()
  File "/home/graingert/projects/cpython/Lib/asyncio/events.py", lineno 849
    return _get_event_loop_policy().new_event_loop()
  File "/home/graingert/projects/cpython/Lib/asyncio/events.py", lineno 736
    return self._loop_factory()
ok
test_get_event_loop_returns_running_loop (test.test_asyncio.test_events.TestPyGetEventLoop.test_get_event_loop_returns_running_loop) ... ok
test_get_event_loop_returns_running_loop2 (test.test_asyncio.test_events.TestPyGetEventLoop.test_get_event_loop_returns_running_loop2) ... ok
test_get_running_loop_already_running (test.test_asyncio.test_events.TestPyGetEventLoop.test_get_running_loop_already_running) ... ok
test_get_loop (test.test_asyncio.test_events.TestServer.test_get_loop) ... ok
test_hash (test.test_asyncio.test_events.TimerTests.test_hash) ... ok
test_timer (test.test_asyncio.test_events.TimerTests.test_timer) ... ok
test_timer_comparison (test.test_asyncio.test_events.TimerTests.test_timer_comparison) ... ok
test_timer_repr (test.test_asyncio.test_events.TimerTests.test_timer_repr) ... ok
test_timer_repr_debug (test.test_asyncio.test_events.TimerTests.test_timer_repr_debug) ... ok
test_when (test.test_asyncio.test_events.TimerTests.test_when) ... ok

----------------------------------------------------------------------
Ran 276 tests in 18.901s

OK

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixestestsTests in the Lib/test dirtopic-asynciotype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions