uvloop icon indicating copy to clipboard operation
uvloop copied to clipboard

0.17.0: test suite is stuck in `tests/test_tcp.py::Test_AIO_TCPSSL::test_remote_shutdown_receives_trailing_data` unit

Open kloczek opened this issue 2 years ago • 1 comments

  • uvloop version: 0.17..0
  • Python version: 3.8.16
  • Platform: Linux x86/64
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: N/A
  • Does uvloop behave differently from vanilla asyncio? How?: N/A

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w --no-isolation
  • because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
  • install .whl file in </install/prefix>
  • run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
  • build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")

Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-uvloop-0.17.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-uvloop-0.17.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network' -v --import-mode importlib --deselect tests/test_dealloc.py::TestDealloc::test_dealloc_1 --deselect tests/test_signals.py::Test_AIO_Signals::test_signals_and_custom_handler_1 --deselect tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_and_custom_handler --deselect tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_pycode_continue --deselect tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_pycode_stop --deselect tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_uvcode --deselect tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_uvcode_two_loop_runs --deselect tests/test_signals.py::Test_AIO_Signals::test_wakeup_fd_unchanged --deselect tests/test_signals.py::Test_UV_Signals::test_signals_and_custom_handler_1 --deselect tests/test_signals.py::Test_UV_Signals::test_signals_sigint_and_custom_handler --deselect tests/test_signals.py::Test_UV_Signals::test_signals_sigint_pycode_continue --deselect tests/test_signals.py::Test_UV_Signals::test_signals_sigint_pycode_stop --deselect tests/test_signals.py::Test_UV_Signals::test_signals_sigint_uvcode --deselect tests/test_signals.py::Test_UV_Signals::test_signals_sigint_uvcode_two_loop_runs --deselect tests/test_signals.py::Test_UV_Signals::test_wakeup_fd_unchanged
============================= test session starts ==============================
platform linux -- Python 3.8.16, pytest-7.2.2, pluggy-1.0.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0, configfile: pytest.ini, testpaths: tests
collecting ... collected 506 items / 13 deselected / 493 selected

tests/test_aiohttp.py::Test_UV_AioHTTP::test_aiohttp_basic_1 PASSED
tests/test_aiohttp.py::Test_UV_AioHTTP::test_aiohttp_graceful_shutdown PASSED
tests/test_aiohttp.py::Test_AIO_AioHTTP::test_aiohttp_basic_1 PASSED
tests/test_aiohttp.py::Test_AIO_AioHTTP::test_aiohttp_graceful_shutdown PASSED
tests/test_base.py::TestBaseUV::test_big_call_later_timeout PASSED
tests/test_base.py::TestBaseUV::test_call_at PASSED
tests/test_base.py::TestBaseUV::test_call_later_1 PASSED
tests/test_base.py::TestBaseUV::test_call_later_2 PASSED
tests/test_base.py::TestBaseUV::test_call_later_3 PASSED
tests/test_base.py::TestBaseUV::test_call_later_4 PASSED
tests/test_base.py::TestBaseUV::test_call_later_negative PASSED
tests/test_base.py::TestBaseUV::test_call_later_rounding PASSED
tests/test_base.py::TestBaseUV::test_call_soon_1 PASSED
tests/test_base.py::TestBaseUV::test_call_soon_2 PASSED
tests/test_base.py::TestBaseUV::test_call_soon_3 PASSED
tests/test_base.py::TestBaseUV::test_call_soon_base_exc PASSED
tests/test_base.py::TestBaseUV::test_call_soon_threadsafe_safety PASSED
tests/test_base.py::TestBaseUV::test_calls_debug_reporting PASSED
tests/test_base.py::TestBaseUV::test_check_thread PASSED
tests/test_base.py::TestBaseUV::test_close PASSED
tests/test_base.py::TestBaseUV::test_debug_slow_callbacks PASSED
tests/test_base.py::TestBaseUV::test_debug_slow_task_callbacks PASSED
tests/test_base.py::TestBaseUV::test_debug_slow_timer_callbacks PASSED
tests/test_base.py::TestBaseUV::test_default_exc_handler_broken PASSED
tests/test_base.py::TestBaseUV::test_default_exc_handler_callback PASSED
tests/test_base.py::TestBaseUV::test_handle_weakref PASSED
tests/test_base.py::TestBaseUV::test_inf_wait_for PASSED
tests/test_base.py::TestBaseUV::test_loop_call_later_handle_cancelled PASSED
tests/test_base.py::TestBaseUV::test_loop_call_later_handle_when PASSED
tests/test_base.py::TestBaseUV::test_loop_call_later_handle_when_after_fired PASSED
tests/test_base.py::TestBaseUV::test_loop_call_soon_handle_cancelled PASSED
tests/test_base.py::TestBaseUV::test_loop_create_future PASSED
tests/test_base.py::TestBaseUV::test_loop_std_files_cloexec PASSED
tests/test_base.py::TestBaseUV::test_now_update PASSED
tests/test_base.py::TestBaseUV::test_run_once_in_executor_plain PASSED
tests/test_base.py::TestBaseUV::test_run_until_complete_error PASSED
tests/test_base.py::TestBaseUV::test_run_until_complete_keyboard_interrupt PASSED
tests/test_base.py::TestBaseUV::test_run_until_complete_loop PASSED
tests/test_base.py::TestBaseUV::test_run_until_complete_loop_orphan_future_close_loop PASSED
tests/test_base.py::TestBaseUV::test_run_until_complete_type_error PASSED
tests/test_base.py::TestBaseUV::test_set_debug PASSED
tests/test_base.py::TestBaseUV::test_set_exc_handler_broken PASSED
tests/test_base.py::TestBaseUV::test_set_exc_handler_custom PASSED
tests/test_base.py::TestBaseUV::test_set_task_factory PASSED
tests/test_base.py::TestBaseUV::test_set_task_factory_invalid PASSED
tests/test_base.py::TestBaseUV::test_set_task_name PASSED
tests/test_base.py::TestBaseUV::test_shutdown_asyncgens_01 PASSED
tests/test_base.py::TestBaseUV::test_shutdown_asyncgens_02 PASSED
tests/test_base.py::TestBaseUV::test_shutdown_asyncgens_03 PASSED
tests/test_base.py::TestBaseUV::test_shutdown_default_executor PASSED
tests/test_base.py::TestBaseAIO::test_call_at PASSED
tests/test_base.py::TestBaseAIO::test_call_later_1 PASSED
tests/test_base.py::TestBaseAIO::test_call_later_2 PASSED
tests/test_base.py::TestBaseAIO::test_call_later_3 PASSED
tests/test_base.py::TestBaseAIO::test_call_later_4 PASSED
tests/test_base.py::TestBaseAIO::test_call_later_negative PASSED
tests/test_base.py::TestBaseAIO::test_call_later_rounding PASSED
tests/test_base.py::TestBaseAIO::test_call_soon_1 PASSED
tests/test_base.py::TestBaseAIO::test_call_soon_2 PASSED
tests/test_base.py::TestBaseAIO::test_call_soon_3 PASSED
tests/test_base.py::TestBaseAIO::test_call_soon_base_exc PASSED
tests/test_base.py::TestBaseAIO::test_call_soon_threadsafe_safety PASSED
tests/test_base.py::TestBaseAIO::test_calls_debug_reporting PASSED
tests/test_base.py::TestBaseAIO::test_check_thread PASSED
tests/test_base.py::TestBaseAIO::test_close PASSED
tests/test_base.py::TestBaseAIO::test_debug_slow_callbacks PASSED
tests/test_base.py::TestBaseAIO::test_debug_slow_task_callbacks PASSED
tests/test_base.py::TestBaseAIO::test_debug_slow_timer_callbacks PASSED
tests/test_base.py::TestBaseAIO::test_default_exc_handler_callback PASSED
tests/test_base.py::TestBaseAIO::test_handle_weakref PASSED
tests/test_base.py::TestBaseAIO::test_inf_wait_for PASSED
tests/test_base.py::TestBaseAIO::test_now_update PASSED
tests/test_base.py::TestBaseAIO::test_run_once_in_executor_plain PASSED
tests/test_base.py::TestBaseAIO::test_run_until_complete_error PASSED
tests/test_base.py::TestBaseAIO::test_run_until_complete_keyboard_interrupt PASSED
tests/test_base.py::TestBaseAIO::test_run_until_complete_loop PASSED
tests/test_base.py::TestBaseAIO::test_run_until_complete_loop_orphan_future_close_loop PASSED
tests/test_base.py::TestBaseAIO::test_run_until_complete_type_error PASSED
tests/test_base.py::TestBaseAIO::test_set_debug PASSED
tests/test_base.py::TestBaseAIO::test_set_exc_handler_broken PASSED
tests/test_base.py::TestBaseAIO::test_set_exc_handler_custom PASSED
tests/test_base.py::TestBaseAIO::test_set_task_factory PASSED
tests/test_base.py::TestBaseAIO::test_set_task_factory_invalid PASSED
tests/test_base.py::TestBaseAIO::test_set_task_name PASSED
tests/test_base.py::TestBaseAIO::test_shutdown_asyncgens_01 PASSED
tests/test_base.py::TestBaseAIO::test_shutdown_asyncgens_02 PASSED
tests/test_base.py::TestBaseAIO::test_shutdown_asyncgens_03 PASSED
tests/test_base.py::TestBaseAIO::test_shutdown_default_executor SKIPPED
tests/test_base.py::TestPolicy::test_get_event_loop_returns_running_loop PASSED
tests/test_base.py::TestPolicy::test_running_loop_within_a_loop PASSED
tests/test_base.py::TestPolicy::test_uvloop_policy PASSED
tests/test_context.py::Test_UV_Context::test_connect_accepted_socket PASSED
tests/test_context.py::Test_UV_Context::test_create_connection_protocol PASSED
tests/test_context.py::Test_UV_Context::test_create_server_connection_protocol PASSED
tests/test_context.py::Test_UV_Context::test_create_server_manual_connection_lost PASSED
tests/test_context.py::Test_UV_Context::test_create_server_protocol_factory_context PASSED
tests/test_context.py::Test_UV_Context::test_create_ssl_server_connection_protocol PASSED
tests/test_context.py::Test_UV_Context::test_create_ssl_server_manual_connection_lost PASSED
tests/test_context.py::Test_UV_Context::test_datagram_protocol PASSED
tests/test_context.py::Test_UV_Context::test_start_tls PASSED
tests/test_context.py::Test_UV_Context::test_subprocess_protocol PASSED
tests/test_context.py::Test_UV_Context::test_task_context_1 PASSED
tests/test_context.py::Test_UV_Context::test_task_context_2 PASSED
tests/test_context.py::Test_UV_Context::test_task_context_3 PASSED
tests/test_context.py::Test_UV_Context::test_task_context_4 PASSED
tests/test_context.py::Test_UV_Context::test_task_decimal_context PASSED
tests/test_context.py::Test_AIO_Context::test_connect_accepted_socket PASSED
tests/test_context.py::Test_AIO_Context::test_create_connection_protocol PASSED
tests/test_context.py::Test_AIO_Context::test_create_server_connection_protocol PASSED
tests/test_context.py::Test_AIO_Context::test_create_server_manual_connection_lost SKIPPED
tests/test_context.py::Test_AIO_Context::test_create_server_protocol_factory_context PASSED
tests/test_context.py::Test_AIO_Context::test_create_ssl_server_connection_protocol PASSED
tests/test_context.py::Test_AIO_Context::test_create_ssl_server_manual_connection_lost PASSED
tests/test_context.py::Test_AIO_Context::test_datagram_protocol PASSED
tests/test_context.py::Test_AIO_Context::test_start_tls SKIPPED (thi...)
tests/test_context.py::Test_AIO_Context::test_subprocess_protocol PASSED
tests/test_context.py::Test_AIO_Context::test_task_context_1 PASSED
tests/test_context.py::Test_AIO_Context::test_task_context_2 PASSED
tests/test_context.py::Test_AIO_Context::test_task_context_3 PASSED
tests/test_context.py::Test_AIO_Context::test_task_context_4 PASSED
tests/test_context.py::Test_AIO_Context::test_task_decimal_context PASSED
tests/test_cython.py::TestCythonIntegration::test_cython_coro_is_coroutine PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_1 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_10 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_11 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_12 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_13 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_14 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_15 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_16 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_17 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_18 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_19 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_2 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_20 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_3 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_4 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_5 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_6 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_7 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_8 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_9 PASSED
tests/test_dns.py::Test_UV_DNS::test_getaddrinfo_close_loop SKIPPED
tests/test_dns.py::Test_UV_DNS::test_getnameinfo_1 PASSED
tests/test_dns.py::Test_UV_DNS::test_getnameinfo_2 PASSED
tests/test_dns.py::Test_UV_DNS::test_getnameinfo_3 PASSED
tests/test_dns.py::Test_UV_DNS::test_getnameinfo_4 PASSED
tests/test_dns.py::Test_UV_DNS::test_getnameinfo_5 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_1 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_10 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_11 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_12 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_13 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_14 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_15 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_16 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_17 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_18 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_19 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_2 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_20 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_3 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_4 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_5 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_6 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_7 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_8 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getaddrinfo_9 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getnameinfo_1 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getnameinfo_2 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getnameinfo_3 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getnameinfo_4 PASSED
tests/test_dns.py::Test_AIO_DNS::test_getnameinfo_5 PASSED
tests/test_executors.py::TestUVExecutors::test_executors_process_pool_01 PASSED
tests/test_executors.py::TestUVExecutors::test_executors_process_pool_02 PASSED
tests/test_executors.py::TestAIOExecutors::test_executors_process_pool_01 PASSED
tests/test_executors.py::TestAIOExecutors::test_executors_process_pool_02 PASSED
tests/test_fs_event.py::Test_UV_FS_EVENT_CHANGE::test_fs_event_change PASSED
tests/test_fs_event.py::Test_UV_FS_EVENT_RENAME::test_fs_event_rename PASSED
tests/test_libuv_api.py::Test_UV_libuv::test_libuv_get_loop_t_ptr FAILED
tests/test_libuv_api.py::Test_UV_libuv::test_libuv_get_version PASSED
tests/test_pipes.py::Test_UV_Pipes::test_read_pipe PASSED
tests/test_pipes.py::Test_UV_Pipes::test_read_pty_output PASSED
tests/test_pipes.py::Test_UV_Pipes::test_write_buffer_full PASSED
tests/test_pipes.py::Test_UV_Pipes::test_write_pipe PASSED
tests/test_pipes.py::Test_UV_Pipes::test_write_pipe_disconnect_on_close PASSED
tests/test_pipes.py::Test_UV_Pipes::test_write_pty PASSED
tests/test_pipes.py::Test_AIO_Pipes::test_read_pipe PASSED
tests/test_pipes.py::Test_AIO_Pipes::test_read_pty_output PASSED
tests/test_pipes.py::Test_AIO_Pipes::test_write_buffer_full PASSED
tests/test_pipes.py::Test_AIO_Pipes::test_write_pipe PASSED
tests/test_pipes.py::Test_AIO_Pipes::test_write_pipe_disconnect_on_close PASSED
tests/test_pipes.py::Test_AIO_Pipes::test_write_pty PASSED
tests/test_process.py::Test_UV_Process::test_process_cwd_1 PASSED
tests/test_process.py::Test_UV_Process::test_process_cwd_2 PASSED
tests/test_process.py::Test_UV_Process::test_process_double_close Traceback (most recent call last):
  File "<string>", line 29, in <module>
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/uvloop/__init__.py", line 7, in <module>
    from uvloop.loop import Loop as __BaseLoop  # NOQA
ModuleNotFoundError: No module named 'uvloop.loop'
FAILED
tests/test_process.py::Test_UV_Process::test_process_env_1 PASSED
tests/test_process.py::Test_UV_Process::test_process_env_2 PASSED
tests/test_process.py::Test_UV_Process::test_process_executable_1 PASSED
tests/test_process.py::Test_UV_Process::test_process_executable_2 PASSED
tests/test_process.py::Test_UV_Process::test_process_pid_1 PASSED
tests/test_process.py::Test_UV_Process::test_process_preexec_fn_1 PASSED
tests/test_process.py::Test_UV_Process::test_process_preexec_fn_2 PASSED
tests/test_process.py::Test_UV_Process::test_process_send_signal_1 PASSED
tests/test_process.py::Test_UV_Process::test_process_streams_basic_1 PASSED
tests/test_process.py::Test_UV_Process::test_process_streams_devnull PASSED
tests/test_process.py::Test_UV_Process::test_process_streams_pass_fds PASSED
tests/test_process.py::Test_UV_Process::test_process_streams_redirect PASSED
tests/test_process.py::Test_UV_Process::test_process_streams_stderr_to_stdout PASSED
tests/test_process.py::Test_UV_Process::test_subprocess_fd_leak_1 PASSED
tests/test_process.py::Test_UV_Process::test_subprocess_fd_leak_2 PASSED
tests/test_process.py::Test_UV_Process::test_subprocess_invalid_stdin PASSED
tests/test_process.py::Test_AIO_Process::test_process_cwd_1 PASSED
tests/test_process.py::Test_AIO_Process::test_process_cwd_2 PASSED
tests/test_process.py::Test_AIO_Process::test_process_env_1 PASSED
tests/test_process.py::Test_AIO_Process::test_process_env_2 PASSED
tests/test_process.py::Test_AIO_Process::test_process_executable_1 PASSED
tests/test_process.py::Test_AIO_Process::test_process_executable_2 PASSED
tests/test_process.py::Test_AIO_Process::test_process_pid_1 PASSED
tests/test_process.py::Test_AIO_Process::test_process_preexec_fn_1 PASSED
tests/test_process.py::Test_AIO_Process::test_process_preexec_fn_2 PASSED
tests/test_process.py::Test_AIO_Process::test_process_send_signal_1 PASSED
tests/test_process.py::Test_AIO_Process::test_process_streams_basic_1 PASSED
tests/test_process.py::Test_AIO_Process::test_process_streams_devnull PASSED
tests/test_process.py::Test_AIO_Process::test_process_streams_pass_fds PASSED
tests/test_process.py::Test_AIO_Process::test_process_streams_redirect PASSED
tests/test_process.py::Test_AIO_Process::test_process_streams_stderr_to_stdout PASSED
tests/test_process.py::Test_AIO_Process::test_subprocess_fd_leak_1 PASSED
tests/test_process.py::Test_AIO_Process::test_subprocess_fd_leak_2 PASSED
tests/test_process.py::Test_AIO_Process::test_subprocess_invalid_stdin PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_cancel_make_subprocess_transport_exec PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_cancel_post_init PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_cancel_process_wait PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_close_gets_process_closed PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_communicate PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_communicate_large_stdout_1000000 PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_communicate_large_stdout_65536 PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_communicate_large_stdout_65537 PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_kill PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_send_signal PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_shell PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_start_new_session PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_stdin_not_inheritable PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_stdin_stderr_file PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_stdin_stdout_file PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_stdin_stdout_pipe PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_terminate PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_write_huge_stdin_219263 PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_write_huge_stdin_219264 PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_write_huge_stdin_8192 PASSED
tests/test_process.py::TestAsyncio_UV_Process::test_write_huge_stdin_8193 PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_make_subprocess_transport_exec PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_post_init PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_cancel_process_wait PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_close_gets_process_closed PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_communicate PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_communicate_large_stdout_1000000 PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_communicate_large_stdout_65536 PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_communicate_large_stdout_65537 PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_kill PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_send_signal PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_shell PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_start_new_session PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_stdin_not_inheritable PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_stdin_stderr_file PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_stdin_stdout_file PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_stdin_stdout_pipe PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_terminate PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_write_huge_stdin_219263 PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_write_huge_stdin_219264 PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_write_huge_stdin_8192 PASSED
tests/test_process.py::TestAsyncio_AIO_Process::test_write_huge_stdin_8193 PASSED
tests/test_process.py::Test_UV_Process_Delayed::test_process_delayed_stdio__not_paused__no_stdin PASSED
tests/test_process.py::Test_UV_Process_Delayed::test_process_delayed_stdio__paused__no_stdin PASSED
tests/test_process.py::Test_UV_Process_Delayed::test_process_delayed_stdio__paused__stdin_pipe PASSED
tests/test_process_spawning.py::ProcessSpawningTestCollection::test_spawning_external_process PASSED
tests/test_regr1.py::TestIssue39Regr::test_issue39_regression PASSED
tests/test_signals.py::Test_UV_Signals::test_asyncio_add_watcher_SIGCHLD_nop SKIPPED
tests/test_signals.py::Test_UV_Signals::test_signals_coro_callback PASSED
tests/test_signals.py::Test_UV_Signals::test_signals_fork_in_thread Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/uvloop/__init__.py", line 7, in <module>
    from uvloop.loop import Loop as __BaseLoop  # NOQA
ModuleNotFoundError: No module named 'uvloop.loop'
FAILED
tests/test_signals.py::Test_UV_Signals::test_signals_invalid_signal PASSED
tests/test_signals.py::Test_UV_Signals::test_signals_no_SIGCHLD PASSED
tests/test_signals.py::Test_UV_Signals::test_signals_wakeup_fd_unchanged FAILED
tests/test_signals.py::Test_AIO_Signals::test_signals_coro_callback PASSED
tests/test_signals.py::Test_AIO_Signals::test_signals_fork_in_thread Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/uvloop/__init__.py", line 7, in <module>
    from uvloop.loop import Loop as __BaseLoop  # NOQA
ModuleNotFoundError: No module named 'uvloop.loop'
FAILED
tests/test_signals.py::Test_AIO_Signals::test_signals_invalid_signal PASSED
tests/test_signals.py::Test_AIO_Signals::test_signals_wakeup_fd_unchanged FAILED
tests/test_sockets.py::TestUVSockets::test_add_reader_or_writer_transport_fd PASSED
tests/test_sockets.py::TestUVSockets::test_pseudosocket PASSED
tests/test_sockets.py::TestUVSockets::test_sock_cancel_add_reader_race PASSED
tests/test_sockets.py::TestUVSockets::test_sock_send_before_cancel PASSED
tests/test_sockets.py::TestUVSockets::test_socket_accept_recv_send PASSED
tests/test_sockets.py::TestUVSockets::test_socket_blocking_error PASSED
tests/test_sockets.py::TestUVSockets::test_socket_cancel_sock_recv_1 PASSED
tests/test_sockets.py::TestUVSockets::test_socket_cancel_sock_recv_2 PASSED
tests/test_sockets.py::TestUVSockets::test_socket_cancel_sock_sendall PASSED
tests/test_sockets.py::TestUVSockets::test_socket_close_loop_and_close PASSED
tests/test_sockets.py::TestUVSockets::test_socket_close_many_add_readers PASSED
tests/test_sockets.py::TestUVSockets::test_socket_close_many_remove_writers PASSED
tests/test_sockets.py::TestUVSockets::test_socket_close_remove_reader PASSED
tests/test_sockets.py::TestUVSockets::test_socket_close_remove_writer PASSED
tests/test_sockets.py::TestUVSockets::test_socket_connect_and_close PASSED
tests/test_sockets.py::TestUVSockets::test_socket_connect_recv_send SKIPPED
tests/test_sockets.py::TestUVSockets::test_socket_failed_connect PASSED
tests/test_sockets.py::TestUVSockets::test_socket_fileno PASSED
tests/test_sockets.py::TestUVSockets::test_socket_ipv4_nameaddr PASSED
tests/test_sockets.py::TestUVSockets::test_socket_ipv6_addr PASSED
tests/test_sockets.py::TestUVSockets::test_socket_recv_and_close PASSED
tests/test_sockets.py::TestUVSockets::test_socket_recv_into_and_close PASSED
tests/test_sockets.py::TestUVSockets::test_socket_send_and_close PASSED
tests/test_sockets.py::TestUVSockets::test_socket_sync_remove PASSED
tests/test_sockets.py::TestUVSockets::test_socket_sync_remove_and_immediately_close PASSED
tests/test_sockets.py::TestAIOSockets::test_sock_cancel_add_reader_race SKIPPED
tests/test_sockets.py::TestAIOSockets::test_sock_send_before_cancel SKIPPED
tests/test_sockets.py::TestAIOSockets::test_socket_accept_recv_send PASSED
tests/test_sockets.py::TestAIOSockets::test_socket_blocking_error PASSED
tests/test_sockets.py::TestAIOSockets::test_socket_connect_recv_send SKIPPED
tests/test_sockets.py::TestAIOSockets::test_socket_failed_connect PASSED
tests/test_sockets.py::TestAIOSockets::test_socket_fileno PASSED
tests/test_sockets.py::TestAIOSockets::test_socket_ipv4_nameaddr PASSED
tests/test_sockets.py::TestAIOSockets::test_socket_ipv6_addr PASSED
tests/test_sockets.py::TestAIOSockets::test_socket_sync_remove_and_immediately_close PASSED
tests/test_sourcecode.py::TestSourceCode::test_flake8 SKIPPED (flake...)
tests/test_sourcecode.py::TestSourceCode::test_mypy SKIPPED (mypy mo...)
tests/test_tcp.py::Test_UV_TCP::test_connect_accepted_socket PASSED
tests/test_tcp.py::Test_UV_TCP::test_connect_accepted_socket_ssl_args PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_connection_2 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_connection_3 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_connection_4 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_connection_5 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_connection_6 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_connection_open_con_addr PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_connection_open_con_sock PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_connection_wrong_sock PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_1 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_10 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_2 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_3 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_4 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_5 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_6 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_7 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_8 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_9 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_buffered_1 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_buffered_2 PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_float_backlog PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_stream_bittype PASSED
tests/test_tcp.py::Test_UV_TCP::test_create_server_wrong_sock PASSED
tests/test_tcp.py::Test_UV_TCP::test_flowcontrol_mixin_set_write_limits PASSED
tests/test_tcp.py::Test_UV_TCP::test_many_small_writes PASSED
tests/test_tcp.py::Test_UV_TCP::test_resume_writing_write_different_transport PASSED
tests/test_tcp.py::Test_UV_TCP::test_tcp_handle_abort_in_connection_made PASSED
tests/test_tcp.py::Test_UV_TCP::test_tcp_handle_exception_in_connection_made PASSED
tests/test_tcp.py::Test_UV_TCP::test_tcp_handle_unclosed_gc SKIPPED
tests/test_tcp.py::Test_UV_TCP::test_transport_get_extra_info PASSED
tests/test_tcp.py::Test_UV_TCP::test_transport_shutdown PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_connection_2 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_connection_3 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_connection_4 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_connection_5 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_connection_6 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_connection_open_con_addr PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_connection_open_con_sock PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_server_1 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_server_10 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_server_2 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_server_3 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_server_4 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_server_5 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_server_6 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_server_7 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_server_8 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_create_server_9 PASSED
tests/test_tcp.py::Test_AIO_TCP::test_resume_writing_write_different_transport PASSED
tests/test_tcp.py::Test_AIO_TCP::test_tcp_handle_exception_in_connection_made PASSED
tests/test_tcp.py::Test_AIO_TCP::test_transport_shutdown PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_bpo_39951_discard_trailing_data PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_connect_timeout_warning PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_create_connection_memory_leak PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_create_connection_ssl_1 PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_create_connection_ssl_failed_certificate PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_create_connection_ssl_slow_handshake PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_create_server_ssl_1 PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_create_server_ssl_over_ssl PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_first_data_after_wakeup PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_flush_before_shutdown PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_handshake_timeout_handler_leak PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_remote_shutdown_receives_trailing_data PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_renegotiation PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_shutdown_cleanly PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_shutdown_timeout PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_shutdown_timeout_handler_leak PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_shutdown_timeout_handler_not_set PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_shutdown_while_pause_reading PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_ssl_connect_accepted_socket PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_ssl_handshake_connection_lost PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_ssl_handshake_timeout PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_start_tls_client_buf_proto_1 PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_start_tls_client_corrupted_ssl PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_start_tls_client_reg_proto_1 PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_start_tls_server_1 PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_start_tls_slow_client_cancel PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_start_tls_wrong_args PASSED
tests/test_tcp.py::Test_UV_TCPSSL::test_write_to_closed_transport PASSED
tests/test_tcp.py::Test_AIO_TCPSSL::test_bpo_39951_discard_trailing_data SKIPPED
tests/test_tcp.py::Test_AIO_TCPSSL::test_connect_timeout_warning PASSED
tests/test_tcp.py::Test_AIO_TCPSSL::test_create_connection_memory_leak SKIPPED
tests/test_tcp.py::Test_AIO_TCPSSL::test_create_connection_ssl_1 PASSED
tests/test_tcp.py::Test_AIO_TCPSSL::test_create_connection_ssl_failed_certificate SKIPPED
tests/test_tcp.py::Test_AIO_TCPSSL::test_create_connection_ssl_slow_handshake SKIPPED
tests/test_tcp.py::Test_AIO_TCPSSL::test_create_server_ssl_1 PASSED
tests/test_tcp.py::Test_AIO_TCPSSL::test_create_server_ssl_over_ssl SKIPPED
tests/test_tcp.py::Test_AIO_TCPSSL::test_first_data_after_wakeup SKIPPED
tests/test_tcp.py::Test_AIO_TCPSSL::test_flush_before_shutdown SKIPPED
tests/test_tcp.py::Test_AIO_TCPSSL::test_handshake_timeout_handler_leak SKIPPED
tests/test_tcp.py::Test_AIO_TCPSSL::test_remote_shutdown_receives_trailing_data

ps auxwf shows only

tkloczko 1336275  0.3  0.0 2261784 87364 pts/5   Sl+  14:16   0:43              |           \_ /usr/bin/python3 /usr/bin/pytest -ra -m not network -v --import-mode importlib --deselect test
tkloczko 1336451  0.0  0.0      0     0 pts/5    Z+   14:16   0:00              |               \_ [pytest] <defunct>
tkloczko 1338695  0.0  0.0      0     0 pts/5    Z+   14:16   0:00              |               \_ [pytest] <defunct>

Please let me know if you need any other detaisl or want me to perform some diagnostics.

Here is list of installed modules in build env

Package                       Version
----------------------------- -----------------
aiohttp                       3.8.4
aiosignal                     1.3.1
alabaster                     0.7.13
async-timeout                 4.0.2
attrs                         22.2.0
Babel                         2.12.1
build                         0.10.0
cffi                          1.15.1
charset-normalizer            3.1.0
cryptography                  39.0.2
Cython                        0.29.33
distro                        1.8.0
docutils                      0.19
exceptiongroup                1.0.0
frozenlist                    1.3.3
gpg                           1.18.0
idna                          3.4
imagesize                     1.4.1
importlib-metadata            6.0.0
iniconfig                     2.0.0
Jinja2                        3.1.2
libcomps                      0.1.19
MarkupSafe                    2.1.2
multidict                     6.0.4
packaging                     23.0
pip                           23.0.1
pluggy                        1.0.0
ply                           3.11
psutil                        5.9.2
pycparser                     2.21
Pygments                      2.14.0
pyOpenSSL                     23.0.0
pyproject_hooks               1.0.0
pytest                        7.2.2
python-dateutil               2.8.2
pytz                          2022.4
requests                      2.28.2
rpm                           4.17.0
setuptools                    65.6.3
six                           1.16.0
snowballstemmer               2.2.0
Sphinx                        6.1.3
sphinxcontrib-applehelp       1.0.4
sphinxcontrib-devhelp         1.0.2.dev20230202
sphinxcontrib-htmlhelp        2.0.0
sphinxcontrib-jsmath          1.0.1.dev20230128
sphinxcontrib-qthelp          1.0.3.dev20230128
sphinxcontrib-serializinghtml 1.1.5
tomli                         2.0.1
urllib3                       1.26.15
wheel                         0.38.4
yarl                          1.8.2
zipp                          3.15.0

kloczek avatar Mar 17 '23 17:03 kloczek

After add tests/test_tcp.py::Test_AIO_TCPSSL::test_remote_shutdown_receives_trailing_data to --deselect list I was able to finish pytest however few units are failing Here is pytest output:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-uvloop-0.17.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-uvloop-0.17.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network' --import-mode importlib --deselect tests/test_tcp.py::Test_AIO_TCPSSL::test_remote_shutdown_receives_trailing_data
============================= test session starts ==============================
platform linux -- Python 3.8.16, pytest-7.2.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0, configfile: pytest.ini, testpaths: tests
collected 506 items / 1 deselected / 505 selected

tests/test_aiohttp.py ....
tests/test_base.py ...................................................................................s...
tests/test_context.py ..................s....s......
tests/test_cython.py .
tests/test_dealloc.py F
tests/test_dns.py ....................s..............................
tests/test_executors.py ....
tests/test_fs_event.py ..
tests/test_libuv_api.py F.
tests/test_pipes.py ............
tests/test_process.py ..Traceback (most recent call last):
  File "<string>", line 29, in <module>
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/uvloop/__init__.py", line 7, in <module>
    from .loop import Loop as __BaseLoop  # NOQA
ModuleNotFoundError: No module named 'uvloop.loop'
F...............................................................................
tests/test_process_spawning.py .
tests/test_regr1.py .
tests/test_signals.py sF.Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/uvloop/__init__.py", line 7, in <module>
    from .loop import Loop as __BaseLoop  # NOQA
ModuleNotFoundError: No module named 'uvloop.loop'
F..FFFFFFF.Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/uvloop/__init__.py", line 7, in <module>
    from .loop import Loop as __BaseLoop  # NOQA
ModuleNotFoundError: No module named 'uvloop.loop'
F.FFFFFF
tests/test_sockets.py ...............s.........ss..s.....
tests/test_sourcecode.py ss
tests/test_tcp.py ..............................s..................................................s.s.ss.sssssss.ss..ssssssss
tests/test_testbase.py ...
tests/test_udp.py .......................
tests/test_unix.py ..................................

=================================== FAILURES ===================================
__________________________ TestDealloc.test_dealloc_1 __________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_dealloc.py", line 63, in test_dealloc_1
    self.assertEqual(err, b'', 'stderr is not empty')
  File "/usr/lib64/python3.8/unittest/case.py", line 912, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib64/python3.8/unittest/case.py", line 905, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: b'Traceback (most recent call last):\n  Fil[229 chars]\'\n' != b'' : stderr is not empty
___________________ Test_UV_libuv.test_libuv_get_loop_t_ptr ____________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_libuv_api.py", line 16, in test_libuv_get_loop_t_ptr
    import cython_helper
ModuleNotFoundError: No module named 'cython_helper'
__________________ Test_UV_Process.test_process_double_close ___________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_process.py", line 867, in test_process_double_close
    subprocess.run([sys.executable, '-c', script], check=True)
  File "/usr/lib64/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-c', '\nimport os\nimport sys\nfrom unittest import mock\n\nimport asyncio\n\npipes = []\noriginal_os_pipe = os.pipe\ndef log_pipes():\n    pipe = original_os_pipe()\n    pipes.append(pipe)\n    return pipe\n\ndups = []\noriginal_os_dup = os.dup\ndef log_dups(*args, **kwargs):\n    dup = original_os_dup(*args, **kwargs)\n    dups.append(dup)\n    return dup\n\nwith mock.patch(\n    "os.close", wraps=os.close\n) as os_close, mock.patch(\n    "os.pipe", new=log_pipes\n), mock.patch(\n    "os.dup", new=log_dups\n):\n    import uvloop\n\n\nasync def test():\n    proc = await asyncio.create_subprocess_exec(\n        sys.executable, "-c", "pass"\n    )\n    await proc.communicate()\n\nuvloop.install()\nasyncio.run(test())\n\nstdin, stdout, stderr = dups\n(r, w), = pipes\nassert os_close.mock_calls == [\n    mock.call(w),\n    mock.call(r),\n    mock.call(stderr),\n    mock.call(stdout),\n    mock.call(stdin),\n]\n']' returned non-zero exit status 1.
______________ Test_UV_Signals.test_signals_and_custom_handler_1 _______________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 298, in test_signals_and_custom_handler_1
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 282, in runner
    proc.send_signal(signal.SIGUSR1)
  File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
    self._transport.send_signal(signal)
  File "uvloop/handles/process.pyx", line 644, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 378, in uvloop.loop.UVProcessTransport._check_proc
    raise ProcessLookupError()
ProcessLookupError
_________________ Test_UV_Signals.test_signals_fork_in_thread __________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 384, in test_signals_fork_in_thread
    subprocess.check_call([
  File "/usr/lib64/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', b'-W', b'ignore', b'-c', "\\\nimport asyncio\nimport multiprocessing\nimport signal\nimport sys\nimport threading\nimport uvloop\n\nmultiprocessing.set_start_method('fork')\n\ndef subprocess():\n    loop = uvloop.new_event_loop()\n    loop.add_signal_handler(signal.SIGINT, lambda *a: None)\n\ndef run():\n    loop = uvloop.new_event_loop()\n    loop.add_signal_handler(signal.SIGINT, lambda *a: None)\n    p = multiprocessing.Process(target=subprocess)\n    t = threading.Thread(target=p.start)\n    t.start()\n    t.join()\n    p.join()\n    sys.exit(p.exitcode)\n\nrun()\n"]' returned non-zero exit status 1.
____________ Test_UV_Signals.test_signals_sigint_and_custom_handler ____________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 231, in test_signals_sigint_and_custom_handler
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 223, in runner
    proc.send_signal(signal.SIGHUP)
  File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
    self._transport.send_signal(signal)
  File "uvloop/handles/process.pyx", line 644, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 378, in uvloop.loop.UVProcessTransport._check_proc
    raise ProcessLookupError()
ProcessLookupError
_____________ Test_UV_Signals.test_signals_sigint_pycode_continue ______________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 100, in test_signals_sigint_pycode_continue
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 95, in runner
    proc.send_signal(signal.SIGINT)
  File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
    self._transport.send_signal(signal)
  File "uvloop/handles/process.pyx", line 644, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 378, in uvloop.loop.UVProcessTransport._check_proc
    raise ProcessLookupError()
ProcessLookupError
_______________ Test_UV_Signals.test_signals_sigint_pycode_stop ________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 55, in test_signals_sigint_pycode_stop
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 50, in runner
    proc.send_signal(signal.SIGINT)
  File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
    self._transport.send_signal(signal)
  File "uvloop/handles/process.pyx", line 644, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 378, in uvloop.loop.UVProcessTransport._check_proc
    raise ProcessLookupError()
ProcessLookupError
__________________ Test_UV_Signals.test_signals_sigint_uvcode __________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 139, in test_signals_sigint_uvcode
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 135, in runner
    proc.send_signal(signal.SIGINT)
  File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
    self._transport.send_signal(signal)
  File "uvloop/handles/process.pyx", line 644, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 378, in uvloop.loop.UVProcessTransport._check_proc
    raise ProcessLookupError()
ProcessLookupError
___________ Test_UV_Signals.test_signals_sigint_uvcode_two_loop_runs ___________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 178, in test_signals_sigint_uvcode_two_loop_runs
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 174, in runner
    proc.send_signal(signal.SIGINT)
  File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
    self._transport.send_signal(signal)
  File "uvloop/handles/process.pyx", line 644, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 378, in uvloop.loop.UVProcessTransport._check_proc
    raise ProcessLookupError()
ProcessLookupError
_______________ Test_UV_Signals.test_signals_wakeup_fd_unchanged _______________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 350, in test_signals_wakeup_fd_unchanged
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 347, in runner
    self.assertEqual(err, b'')
  File "/usr/lib64/python3.8/unittest/case.py", line 912, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib64/python3.8/unittest/case.py", line 905, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: b'Traceback (most recent call last):\n  Fil[229 chars]\'\n' != b''
______________ Test_AIO_Signals.test_signals_and_custom_handler_1 ______________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 298, in test_signals_and_custom_handler_1
    self.loop.run_until_complete(runner())
  File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 282, in runner
    proc.send_signal(signal.SIGUSR1)
  File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
    self._transport.send_signal(signal)
  File "/usr/lib64/python3.8/asyncio/base_subprocess.py", line 146, in send_signal
    self._proc.send_signal(signal)
  File "/usr/lib64/python3.8/subprocess.py", line 1933, in send_signal
    os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process
_________________ Test_AIO_Signals.test_signals_fork_in_thread _________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 384, in test_signals_fork_in_thread
    subprocess.check_call([
  File "/usr/lib64/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', b'-W', b'ignore', b'-c', "\\\nimport asyncio\nimport multiprocessing\nimport signal\nimport sys\nimport threading\nimport uvloop\n\nmultiprocessing.set_start_method('fork')\n\ndef subprocess():\n    loop = asyncio.new_event_loop()\n    loop.add_signal_handler(signal.SIGINT, lambda *a: None)\n\ndef run():\n    loop = asyncio.new_event_loop()\n    loop.add_signal_handler(signal.SIGINT, lambda *a: None)\n    p = multiprocessing.Process(target=subprocess)\n    t = threading.Thread(target=p.start)\n    t.start()\n    t.join()\n    p.join()\n    sys.exit(p.exitcode)\n\nrun()\n"]' returned non-zero exit status 1.
___________ Test_AIO_Signals.test_signals_sigint_and_custom_handler ____________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 231, in test_signals_sigint_and_custom_handler
    self.loop.run_until_complete(runner())
  File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 223, in runner
    proc.send_signal(signal.SIGHUP)
  File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
    self._transport.send_signal(signal)
  File "/usr/lib64/python3.8/asyncio/base_subprocess.py", line 146, in send_signal
    self._proc.send_signal(signal)
  File "/usr/lib64/python3.8/subprocess.py", line 1933, in send_signal
    os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process
_____________ Test_AIO_Signals.test_signals_sigint_pycode_continue _____________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 100, in test_signals_sigint_pycode_continue
    self.loop.run_until_complete(runner())
  File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 95, in runner
    proc.send_signal(signal.SIGINT)
  File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
    self._transport.send_signal(signal)
  File "/usr/lib64/python3.8/asyncio/base_subprocess.py", line 146, in send_signal
    self._proc.send_signal(signal)
  File "/usr/lib64/python3.8/subprocess.py", line 1933, in send_signal
    os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process
_______________ Test_AIO_Signals.test_signals_sigint_pycode_stop _______________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 55, in test_signals_sigint_pycode_stop
    self.loop.run_until_complete(runner())
  File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 50, in runner
    proc.send_signal(signal.SIGINT)
  File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
    self._transport.send_signal(signal)
  File "/usr/lib64/python3.8/asyncio/base_subprocess.py", line 146, in send_signal
    self._proc.send_signal(signal)
  File "/usr/lib64/python3.8/subprocess.py", line 1933, in send_signal
    os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process
_________________ Test_AIO_Signals.test_signals_sigint_uvcode __________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 139, in test_signals_sigint_uvcode
    self.loop.run_until_complete(runner())
  File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 135, in runner
    proc.send_signal(signal.SIGINT)
  File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
    self._transport.send_signal(signal)
  File "/usr/lib64/python3.8/asyncio/base_subprocess.py", line 146, in send_signal
    self._proc.send_signal(signal)
  File "/usr/lib64/python3.8/subprocess.py", line 1933, in send_signal
    os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process
__________ Test_AIO_Signals.test_signals_sigint_uvcode_two_loop_runs ___________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 178, in test_signals_sigint_uvcode_two_loop_runs
    self.loop.run_until_complete(runner())
  File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 174, in runner
    proc.send_signal(signal.SIGINT)
  File "/usr/lib64/python3.8/asyncio/subprocess.py", line 138, in send_signal
    self._transport.send_signal(signal)
  File "/usr/lib64/python3.8/asyncio/base_subprocess.py", line 146, in send_signal
    self._proc.send_signal(signal)
  File "/usr/lib64/python3.8/subprocess.py", line 1933, in send_signal
    os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process
______________ Test_AIO_Signals.test_signals_wakeup_fd_unchanged _______________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 350, in test_signals_wakeup_fd_unchanged
    self.loop.run_until_complete(runner())
  File "/usr/lib64/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.17.0/tests/test_signals.py", line 347, in runner
    self.assertEqual(err, b'')
  File "/usr/lib64/python3.8/unittest/case.py", line 912, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib64/python3.8/unittest/case.py", line 905, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: b'Traceback (most recent call last):\n  Fil[229 chars]\'\n' != b''
=============================== warnings summary ===============================
tests/test_libuv_api.py::Test_UV_libuv::test_libuv_get_loop_t_ptr
  /usr/lib64/python3.8/site-packages/pyximport/pyximport.py:51: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import imp

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
SKIPPED [1] tests/test_base.py:699: Skipped
SKIPPED [1] tests/test_context.py:435: this seems to be a bug in asyncio
SKIPPED [1] tests/test_context.py:578: this seems to be a bug in asyncio
SKIPPED [1] tests/test_dns.py:210: Skipped
SKIPPED [1] tests/test_signals.py:398: in 3.8 a ThreadedChildWatcher is used (does not rely on SIGCHLD)
SKIPPED [2] tests/test_sockets.py:23: Skipped
SKIPPED [1] tests/test_sockets.py:192: Skipped
SKIPPED [1] tests/test_sockets.py:248: Skipped
SKIPPED [1] tests/test_sourcecode.py:13: flake8 module is missing
SKIPPED [1] tests/test_sourcecode.py:37: mypy module is missing
SKIPPED [1] tests/test_tcp.py:1039: 3.8 has a different method of GCing unclosed streams
SKIPPED [1] tests/test_tcp.py:3030: bpo-39951
SKIPPED [1] tests/test_tcp.py:1780: Skipped
SKIPPED [1] tests/test_tcp.py:1499: Skipped
SKIPPED [1] tests/test_tcp.py:1463: Skipped
SKIPPED [1] tests/test_tcp.py:2090: asyncio does not support SSL over SSL
SKIPPED [1] tests/test_tcp.py:3112: Skipped
SKIPPED [1] tests/test_tcp.py:2597: Skipped
SKIPPED [1] tests/test_tcp.py:2823: Skipped
SKIPPED [1] tests/test_tcp.py:2236: asyncio does not support renegotiation
SKIPPED [1] tests/test_tcp.py:2454: Skipped
SKIPPED [1] tests/test_tcp.py:2356: Skipped
SKIPPED [1] tests/test_tcp.py:2890: Skipped
SKIPPED [1] tests/test_tcp.py:2948: Skipped
SKIPPED [1] tests/test_tcp.py:1551: Skipped
SKIPPED [1] tests/test_tcp.py:1846: Skipped
SKIPPED [1] tests/test_tcp.py:1667: Skipped
SKIPPED [1] tests/test_tcp.py:1716: Skipped
SKIPPED [1] tests/test_tcp.py:2008: Skipped
SKIPPED [1] tests/test_tcp.py:1945: Skipped
SKIPPED [1] tests/test_tcp.py:1536: Skipped
SKIPPED [1] tests/test_tcp.py:2518: Skipped
FAILED tests/test_dealloc.py::TestDealloc::test_dealloc_1 - AssertionError: b...
FAILED tests/test_libuv_api.py::Test_UV_libuv::test_libuv_get_loop_t_ptr - Mo...
FAILED tests/test_process.py::Test_UV_Process::test_process_double_close - su...
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_and_custom_handler_1
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_fork_in_thread - ...
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_and_custom_handler
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_pycode_continue
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_pycode_stop
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_uvcode - P...
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_uvcode_two_loop_runs
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_wakeup_fd_unchanged
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_and_custom_handler_1
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_fork_in_thread
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_and_custom_handler
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_pycode_continue
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_pycode_stop
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_uvcode - ...
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_uvcode_two_loop_runs
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_wakeup_fd_unchanged
= 19 failed, 453 passed, 33 skipped, 1 deselected, 1 warning in 94.72s (0:01:34) =

kloczek avatar Mar 17 '23 18:03 kloczek