Skip to content

Instantly share code, notes, and snippets.

@MarkReedZ
Created March 28, 2018 21:15
Show Gist options
  • Select an option

  • Save MarkReedZ/1208fcbe4ff117fffac7765cb8a62211 to your computer and use it in GitHub Desktop.

Select an option

Save MarkReedZ/1208fcbe4ff117fffac7765cb8a62211 to your computer and use it in GitHub Desktop.
uvloop make test fails on ubuntu 16.04
PYTHONASYNCIODEBUG=1 python setup.py test
running test
running egg_info
creating uvloop.egg-info
writing uvloop.egg-info/PKG-INFO
writing top-level names to uvloop.egg-info/top_level.txt
writing dependency_links to uvloop.egg-info/dependency_links.txt
writing manifest file 'uvloop.egg-info/SOURCES.txt'
reading manifest file 'uvloop.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 'vendor/libuv/.git'
writing manifest file 'uvloop.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-3.5/uvloop/loop.cpython-35m-x86_64-linux-gnu.so -> uvloop
test_aiohttp_basic_1 (test_aiohttp.Test_AIO_AioHTTP) ... skipped 'no aiohttp module'
test_aiohttp_basic_1 (test_aiohttp.Test_UV_AioHTTP) ... skipped 'no aiohttp module'
test_call_at (test_base.TestBaseAIO) ... ok
test_call_later_1 (test_base.TestBaseAIO) ... ok
test_call_later_2 (test_base.TestBaseAIO) ... ok
test_call_later_negative (test_base.TestBaseAIO) ... ok
test_call_soon (test_base.TestBaseAIO) ... ok
test_call_soon_base_exc (test_base.TestBaseAIO) ... ok
test_calls_debug_reporting (test_base.TestBaseAIO) ... ok
test_check_thread (test_base.TestBaseAIO) ... ok
test_close (test_base.TestBaseAIO) ... ok
test_debug_slow_callbacks (test_base.TestBaseAIO) ... ok
test_debug_slow_task_callbacks (test_base.TestBaseAIO) ... ok
test_debug_slow_timer_callbacks (test_base.TestBaseAIO) ... ok
test_default_exc_handler_broken (test_base.TestBaseAIO) ... ok
test_default_exc_handler_callback (test_base.TestBaseAIO) ... ok
test_handle_weakref (test_base.TestBaseAIO) ... ok
test_inf_wait_for (test_base.TestBaseAIO) ... ok
test_now_update (test_base.TestBaseAIO) ... ok
test_run_once_in_executor_plain (test_base.TestBaseAIO) ... ok
test_run_until_complete_error (test_base.TestBaseAIO) ... ok
test_run_until_complete_loop (test_base.TestBaseAIO) ... ok
test_run_until_complete_loop_orphan_future_close_loop (test_base.TestBaseAIO) ... skipped 'unfixed asyncio'
test_run_until_complete_type_error (test_base.TestBaseAIO) ... ok
test_set_debug (test_base.TestBaseAIO) ... ok
test_set_exc_handler_broken (test_base.TestBaseAIO) ... ok
test_set_exc_handler_custom (test_base.TestBaseAIO) ... ok
test_set_task_factory (test_base.TestBaseAIO) ... ok
test_set_task_factory_invalid (test_base.TestBaseAIO) ... ok
test_shutdown_asyncgens_01 (test_base.TestBaseAIO) ... skipped ''
test_shutdown_asyncgens_02 (test_base.TestBaseAIO) ... skipped ''
test_shutdown_asyncgens_03 (test_base.TestBaseAIO) ... skipped ''
test_call_at (test_base.TestBaseUV) ... ok
test_call_later_1 (test_base.TestBaseUV) ... ok
test_call_later_2 (test_base.TestBaseUV) ... ok
test_call_later_negative (test_base.TestBaseUV) ... ok
test_call_soon (test_base.TestBaseUV) ... ok
test_call_soon_base_exc (test_base.TestBaseUV) ... ok
test_calls_debug_reporting (test_base.TestBaseUV) ... ok
test_check_thread (test_base.TestBaseUV) ... ok
test_close (test_base.TestBaseUV) ... ok
test_debug_slow_callbacks (test_base.TestBaseUV) ... ok
test_debug_slow_task_callbacks (test_base.TestBaseUV) ... ok
test_debug_slow_timer_callbacks (test_base.TestBaseUV) ... ok
test_default_exc_handler_broken (test_base.TestBaseUV) ... ok
test_default_exc_handler_callback (test_base.TestBaseUV) ... ok
test_handle_weakref (test_base.TestBaseUV) ... ok
test_inf_wait_for (test_base.TestBaseUV) ... ok
test_loop_call_later_handle_cancelled (test_base.TestBaseUV) ... ok
test_loop_call_soon_handle_cancelled (test_base.TestBaseUV) ... ok
test_loop_create_future (test_base.TestBaseUV) ... ok
test_loop_std_files_cloexec (test_base.TestBaseUV) ... ok
test_now_update (test_base.TestBaseUV) ... ok
test_run_once_in_executor_plain (test_base.TestBaseUV) ... ok
test_run_until_complete_error (test_base.TestBaseUV) ... ok
test_run_until_complete_loop (test_base.TestBaseUV) ... ok
test_run_until_complete_loop_orphan_future_close_loop (test_base.TestBaseUV) ... ok
test_run_until_complete_type_error (test_base.TestBaseUV) ... ok
test_set_debug (test_base.TestBaseUV) ... ok
test_set_exc_handler_broken (test_base.TestBaseUV) ... ok
test_set_exc_handler_custom (test_base.TestBaseUV) ... ok
test_set_task_factory (test_base.TestBaseUV) ... ok
test_set_task_factory_invalid (test_base.TestBaseUV) ... ok
test_shutdown_asyncgens_01 (test_base.TestBaseUV) ... skipped ''
test_shutdown_asyncgens_02 (test_base.TestBaseUV) ... skipped ''
test_shutdown_asyncgens_03 (test_base.TestBaseUV) ... skipped ''
test_get_event_loop_returns_running_loop (test_base.TestPolicy) ... skipped 'No asyncio._get_running_loop'
test_running_loop_within_a_loop (test_base.TestPolicy) ... skipped 'No asyncio._get_running_loop'
test_uvloop_policy (test_base.TestPolicy) ... ok
test_cython_coro_is_coroutine (test_cython.TestCythonIntegration) ... FAIL
/usr/lib/python3.5/unittest/case.py:628: RuntimeWarning: coroutine '_test_coroutine_1' was never awaited
outcome.errors.clear()
test_dealloc_1 (test_dealloc.TestDealloc) ... ok
test_getaddrinfo_1 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_10 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_11 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_12 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_13 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_14 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_15 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_16 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_17 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_18 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_19 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_2 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_20 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_3 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_4 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_5 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_6 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_7 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_8 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_9 (test_dns.Test_AIO_DNS) ... ok
test_getnameinfo_1 (test_dns.Test_AIO_DNS) ... ok
test_getnameinfo_2 (test_dns.Test_AIO_DNS) ... ok
test_getnameinfo_3 (test_dns.Test_AIO_DNS) ... ok
test_getnameinfo_4 (test_dns.Test_AIO_DNS) ... ok
test_getnameinfo_5 (test_dns.Test_AIO_DNS) ... ok
test_getaddrinfo_1 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_10 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_11 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_12 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_13 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_14 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_15 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_16 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_17 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_18 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_19 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_2 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_20 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_3 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_4 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_5 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_6 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_7 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_8 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_9 (test_dns.Test_UV_DNS) ... ok
test_getaddrinfo_close_loop (test_dns.Test_UV_DNS) ... ok
test_getnameinfo_1 (test_dns.Test_UV_DNS) ... ok
test_getnameinfo_2 (test_dns.Test_UV_DNS) ... ok
test_getnameinfo_3 (test_dns.Test_UV_DNS) ... ok
test_getnameinfo_4 (test_dns.Test_UV_DNS) ... ok
test_getnameinfo_5 (test_dns.Test_UV_DNS) ... ok
test_executors_process_pool_01 (test_executors.TestAIOExecutors) ... ok
test_executors_process_pool_02 (test_executors.TestAIOExecutors) ... ok
test_executors_process_pool_01 (test_executors.TestUVExecutors) ... Executing <Task pending coro=<_TestExecutors.run_pool_test.<locals>.run() running at /home/ch/uvloop/tests/test_executors.py:22> wait_for=<_GatheringFuture pending cb=[Task._wakeup()] created at /usr/lib/python3.5/asyncio/tasks.py:576> cb=[run_until_complete.<locals>.<lambda>()] created at /home/ch/uvloop/tests/test_executors.py:27> took 0.124 seconds
ok
test_executors_process_pool_02 (test_executors.TestUVExecutors) ... ok
test_read_pipe (test_pipes.Test_AIO_Pipes) ... ok
test_read_pty_output (test_pipes.Test_AIO_Pipes) ... ok
test_write_pipe (test_pipes.Test_AIO_Pipes) ... ok
test_write_pipe_disconnect_on_close (test_pipes.Test_AIO_Pipes) ... ok
test_write_pty (test_pipes.Test_AIO_Pipes) ... ok
test_read_pipe (test_pipes.Test_UV_Pipes) ... ok
test_read_pty_output (test_pipes.Test_UV_Pipes) ... ok
test_write_pipe (test_pipes.Test_UV_Pipes) ... ok
test_write_pipe_disconnect_on_close (test_pipes.Test_UV_Pipes) ... ok
test_write_pty (test_pipes.Test_UV_Pipes) ... ok
test_cancel_make_subprocess_transport_exec (test_process.TestAsyncio_AIO_Process) ... ok
test_cancel_post_init (test_process.TestAsyncio_AIO_Process) ... ok
test_cancel_process_wait (test_process.TestAsyncio_AIO_Process) ... ok
test_communicate (test_process.TestAsyncio_AIO_Process) ... ok
test_kill (test_process.TestAsyncio_AIO_Process) ... ok
test_send_signal (test_process.TestAsyncio_AIO_Process) ... ok
test_shell (test_process.TestAsyncio_AIO_Process) ... ok
test_start_new_session (test_process.TestAsyncio_AIO_Process) ... ok
test_stdin_not_inheritable (test_process.TestAsyncio_AIO_Process) ... ok
test_stdin_stdout (test_process.TestAsyncio_AIO_Process) ... ok
test_terminate (test_process.TestAsyncio_AIO_Process) ... ok
test_cancel_make_subprocess_transport_exec (test_process.TestAsyncio_UV_Process) ... ok
test_cancel_post_init (test_process.TestAsyncio_UV_Process) ... ok
test_cancel_process_wait (test_process.TestAsyncio_UV_Process) ... ok
test_communicate (test_process.TestAsyncio_UV_Process) ... ok
test_kill (test_process.TestAsyncio_UV_Process) ... ok
test_send_signal (test_process.TestAsyncio_UV_Process) ... ok
test_shell (test_process.TestAsyncio_UV_Process) ... ok
test_start_new_session (test_process.TestAsyncio_UV_Process) ... ok
test_stdin_not_inheritable (test_process.TestAsyncio_UV_Process) ... ok
test_stdin_stdout (test_process.TestAsyncio_UV_Process) ... ok
test_terminate (test_process.TestAsyncio_UV_Process) ... ok
test_process_cwd_1 (test_process.Test_AIO_Process) ... ok
test_process_cwd_2 (test_process.Test_AIO_Process) ... skipped 'no os.fspath()'
test_process_env_1 (test_process.Test_AIO_Process) ... ok
test_process_executable_1 (test_process.Test_AIO_Process) ... ok
test_process_pid_1 (test_process.Test_AIO_Process) ... ok
test_process_preexec_fn_1 (test_process.Test_AIO_Process) ... ok
test_process_preexec_fn_2 (test_process.Test_AIO_Process) ... ok
test_process_send_signal_1 (test_process.Test_AIO_Process) ... ok
test_process_streams_basic_1 (test_process.Test_AIO_Process) ... ok
test_process_streams_devnull (test_process.Test_AIO_Process) ... ok
test_process_streams_pass_fds (test_process.Test_AIO_Process) ... ok
test_process_streams_stderr_to_stdout (test_process.Test_AIO_Process) ... ok
test_process_cwd_1 (test_process.Test_UV_Process) ... ok
test_process_cwd_2 (test_process.Test_UV_Process) ... skipped 'no os.fspath()'
test_process_env_1 (test_process.Test_UV_Process) ... ok
test_process_executable_1 (test_process.Test_UV_Process) ... ok
test_process_pid_1 (test_process.Test_UV_Process) ... ok
test_process_preexec_fn_1 (test_process.Test_UV_Process) ... ok
test_process_preexec_fn_2 (test_process.Test_UV_Process) ... ok
test_process_send_signal_1 (test_process.Test_UV_Process) ... ok
test_process_streams_basic_1 (test_process.Test_UV_Process) ... ok
test_process_streams_devnull (test_process.Test_UV_Process) ... ok
test_process_streams_pass_fds (test_process.Test_UV_Process) ... ok
test_process_streams_redirect (test_process.Test_UV_Process) ... ok
test_process_streams_stderr_to_stdout (test_process.Test_UV_Process) ... ok
test_process_delayed_stdio__not_paused__no_stdin (test_process.Test_UV_Process_Delayed) ... ok
test_process_delayed_stdio__paused__no_stdin (test_process.Test_UV_Process_Delayed) ... Executing <Task pending coro=<Test_UV_Process_Delayed.run_sub() running at /home/ch/uvloop/tests/test_process.py:607> wait_for=<Future pending cb=[Task._wakeup()] created at /home/ch/uvloop/tests/test_process.py:607> cb=[run_until_complete.<locals>.<lambda>()] created at /home/ch/uvloop/tests/test_process.py:634> took 1.009 seconds
ok
test_process_delayed_stdio__paused__stdin_pipe (test_process.Test_UV_Process_Delayed) ... Executing <Task pending coro=<Test_UV_Process_Delayed.run_sub() running at /home/ch/uvloop/tests/test_process.py:607> wait_for=<Future pending cb=[Task._wakeup()] created at /home/ch/uvloop/tests/test_process.py:607> cb=[run_until_complete.<locals>.<lambda>()] created at /home/ch/uvloop/tests/test_process.py:615> took 1.008 seconds
ok
test_issue39_regression (test_regr1.TestIssue39Regr) ... ok
test_signals_and_custom_handler_1 (test_signals.Test_AIO_Signals) ... ok
test_signals_coro_callback (test_signals.Test_AIO_Signals) ... ok
test_signals_invalid_signal (test_signals.Test_AIO_Signals) ... ok
test_signals_sigint_and_custom_handler (test_signals.Test_AIO_Signals) ... ok
test_signals_sigint_pycode_continue (test_signals.Test_AIO_Signals) ... ok
test_signals_sigint_pycode_stop (test_signals.Test_AIO_Signals) ... ok
test_signals_sigint_uvcode (test_signals.Test_AIO_Signals) ... ok
test_signals_and_custom_handler_1 (test_signals.Test_UV_Signals) ... ok
test_signals_coro_callback (test_signals.Test_UV_Signals) ... ok
test_signals_invalid_signal (test_signals.Test_UV_Signals) ... ok
test_signals_sigint_and_custom_handler (test_signals.Test_UV_Signals) ... ok
test_signals_sigint_pycode_continue (test_signals.Test_UV_Signals) ... ok
test_signals_sigint_pycode_stop (test_signals.Test_UV_Signals) ... ok
test_signals_sigint_uvcode (test_signals.Test_UV_Signals) ... ok
test_socket_accept_recv_send (test_sockets.TestAIOSockets) ... ok
test_socket_blocking_error (test_sockets.TestAIOSockets) ... ok
test_socket_connect_recv_send (test_sockets.TestAIOSockets) ... skipped ''
test_socket_failed_connect (test_sockets.TestAIOSockets) ... ok
test_socket_fileno (test_sockets.TestAIOSockets) ... ok
test_socket_ipv6_addr (test_sockets.TestAIOSockets) ... ok
test_socket_sync_remove_and_immediately_close (test_sockets.TestAIOSockets) ... ok
test_add_reader_or_writer_transport_fd (test_sockets.TestUVSockets) ... ok
test_pseudosocket (test_sockets.TestUVSockets) ... ok
test_socket_accept_recv_send (test_sockets.TestUVSockets) ... ok
test_socket_blocking_error (test_sockets.TestUVSockets) ... ok
test_socket_cancel_sock_recv_1 (test_sockets.TestUVSockets) ... ok
test_socket_cancel_sock_recv_2 (test_sockets.TestUVSockets) ... ok
test_socket_cancel_sock_sendall (test_sockets.TestUVSockets) ... Exception in callback loop._on_idle
handle: <Handle loop._on_idle>
Traceback (most recent call last):
File "uvloop/cbhandles.pyx", line 52, in uvloop.loop.Handle._run
(<method_t>self.callback)(self.arg1)
File "uvloop/loop.pyx", line 360, in uvloop.loop.Loop._on_idle
handler._format_handle(), delta)
File "uvloop/cbhandles.pyx", line 98, in uvloop.loop.Handle._format_handle
return repr(cb.__self__)
File "/usr/lib/python3.5/asyncio/futures.py", line 194, in __repr__
info = self._repr_info()
File "/usr/lib/python3.5/asyncio/tasks.py", line 106, in _repr_info
info.insert(2, 'wait_for=%r' % self._fut_waiter)
File "/usr/lib/python3.5/asyncio/futures.py", line 194, in __repr__
info = self._repr_info()
File "/usr/lib/python3.5/asyncio/tasks.py", line 102, in _repr_info
coro = coroutines._format_coroutine(self._coro)
File "/home/ch/uvloop/uvloop/_patch.py", line 27, in _format_coroutine
return _old_format_coroutine(coro)
File "/usr/lib/python3.5/asyncio/coroutines.py", line 286, in _format_coroutine
filename = coro_code.co_filename
AttributeError: 'NoneType' object has no attribute 'co_filename'
Unexpected calls to loop.call_exception_handler():
[{'exception': AttributeError("'NoneType' object has no attribute 'co_filename'",),
'handle': <Handle loop._on_idle>,
'message': 'Exception in callback loop._on_idle'}]
FAIL
test_socket_close_loop_and_close (test_sockets.TestUVSockets) ... ok
test_socket_close_many_add_readers (test_sockets.TestUVSockets) ... ok
test_socket_close_many_remove_writers (test_sockets.TestUVSockets) ... ok
test_socket_close_remove_reader (test_sockets.TestUVSockets) ... ok
test_socket_close_remove_writer (test_sockets.TestUVSockets) ... ok
test_socket_connect_and_close (test_sockets.TestUVSockets) ... ok
test_socket_connect_recv_send (test_sockets.TestUVSockets) ... ok
test_socket_failed_connect (test_sockets.TestUVSockets) ... ok
test_socket_fileno (test_sockets.TestUVSockets) ... ok
test_socket_ipv6_addr (test_sockets.TestUVSockets) ... ok
test_socket_recv_and_close (test_sockets.TestUVSockets) ... ok
test_socket_recv_into_and_close (test_sockets.TestUVSockets) ... ok
test_socket_send_and_close (test_sockets.TestUVSockets) ... ok
test_socket_sync_remove (test_sockets.TestUVSockets) ... ok
test_socket_sync_remove_and_immediately_close (test_sockets.TestUVSockets) ... ok
test_task_basics (test_tasks.Test_AIO_Tasks) ... ok
test_task_cancel_both_task_and_inner_future (test_tasks.Test_AIO_Tasks) ... ok
test_task_cancel_current_task (test_tasks.Test_AIO_Tasks) ... ok
test_task_cancel_inner_future (test_tasks.Test_AIO_Tasks) ... ok
test_task_cancel_task_catching (test_tasks.Test_AIO_Tasks) ... ok
test_task_cancel_task_ignoring (test_tasks.Test_AIO_Tasks) ... ok
test_task_cancel_yield (test_tasks.Test_AIO_Tasks) ... ok
test_task_current_task (test_tasks.Test_AIO_Tasks) ... ok
test_task_current_task_with_interleaving_tasks (test_tasks.Test_AIO_Tasks) ... ok
test_task_repr (test_tasks.Test_AIO_Tasks) ... ok
test_task_step_result (test_tasks.Test_AIO_Tasks) ... ok
test_task_step_result_future (test_tasks.Test_AIO_Tasks) ... ok
test_task_step_with_baseexception (test_tasks.Test_AIO_Tasks) ... ok
test_task_yield_future_passes_cancel (test_tasks.Test_AIO_Tasks) ... ok
test_task_yield_vs_yield_from (test_tasks.Test_AIO_Tasks) ... ok
test_task_yield_wait_does_not_shield_cancel (test_tasks.Test_AIO_Tasks) ... ok
test_task_basics (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_cancel_both_task_and_inner_future (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_cancel_current_task (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_cancel_inner_future (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_cancel_task_catching (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_cancel_task_ignoring (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_cancel_yield (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_current_task (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_current_task_with_interleaving_tasks (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_repr (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_step_result (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_step_result_future (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_step_with_baseexception (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_yield_future_passes_cancel (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_yield_vs_yield_from (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_yield_wait_does_not_shield_cancel (test_tasks.Test_UV_AIO_Tasks) ... ok
test_task_basics (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_cancel_both_task_and_inner_future (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_cancel_current_task (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_cancel_inner_future (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_cancel_task_catching (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_cancel_task_ignoring (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_cancel_yield (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_current_task (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_current_task_with_interleaving_tasks (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_repr (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_step_result (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_step_result_future (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_step_with_baseexception (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_yield_future_passes_cancel (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_yield_vs_yield_from (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_yield_wait_does_not_shield_cancel (test_tasks.Test_UV_UV_Tasks) ... ok
test_task_basics (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_cancel_both_task_and_inner_future (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_cancel_current_task (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_cancel_inner_future (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_cancel_task_catching (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_cancel_task_ignoring (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_cancel_yield (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_current_task (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_current_task_with_interleaving_tasks (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_repr (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_step_result (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_step_result_future (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_step_with_baseexception (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_yield_future_passes_cancel (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_yield_vs_yield_from (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_task_yield_wait_does_not_shield_cancel (test_tasks.Test_UV_UV_Tasks_AIO_Future) ... ok
test_create_connection_2 (test_tcp.Test_AIO_TCP) ... ok
test_create_connection_3 (test_tcp.Test_AIO_TCP) ... ok
test_create_connection_4 (test_tcp.Test_AIO_TCP) ... ok
test_create_connection_5 (test_tcp.Test_AIO_TCP) ... ok
test_create_connection_open_con_addr (test_tcp.Test_AIO_TCP) ... ok
test_create_connection_open_con_sock (test_tcp.Test_AIO_TCP) ... ok
test_create_server_1 (test_tcp.Test_AIO_TCP) ... skipped ''
test_create_server_2 (test_tcp.Test_AIO_TCP) ... ok
test_create_server_3 (test_tcp.Test_AIO_TCP)
check ephemeral port can be used ... ok
test_create_server_4 (test_tcp.Test_AIO_TCP) ... ok
test_create_server_5 (test_tcp.Test_AIO_TCP) ... ok
test_create_server_6 (test_tcp.Test_AIO_TCP) ... ok
test_create_server_7 (test_tcp.Test_AIO_TCP) ... ok
test_tcp_handle_exception_in_connection_made (test_tcp.Test_AIO_TCP) ... ok
test_transport_shutdown (test_tcp.Test_AIO_TCP) ... ok
test_create_connection_ssl_1 (test_tcp.Test_AIO_TCPSSL) ... /usr/lib/python3.5/asyncio/selector_events.py:574: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=22>
warnings.warn("unclosed transport %r" % self, ResourceWarning)
/usr/lib/python3.5/asyncio/selector_events.py:574: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=26>
warnings.warn("unclosed transport %r" % self, ResourceWarning)
/usr/lib/python3.5/asyncio/selector_events.py:574: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=30>
warnings.warn("unclosed transport %r" % self, ResourceWarning)
/usr/lib/python3.5/asyncio/selector_events.py:574: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=37>
warnings.warn("unclosed transport %r" % self, ResourceWarning)
/usr/lib/python3.5/asyncio/selector_events.py:574: ResourceWarning: unclosed transport <_SelectorSocketTransport fd=39>
warnings.warn("unclosed transport %r" % self, ResourceWarning)
ok
test_create_server_ssl_1 (test_tcp.Test_AIO_TCPSSL) ... ok
test_ssl_connect_accepted_socket (test_tcp.Test_AIO_TCPSSL) ... ERROR
/usr/lib/python3.5/unittest/case.py:628: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 46574)>
outcome.errors.clear()
/usr/lib/python3.5/unittest/case.py:628: ResourceWarning: unclosed <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 46574), raddr=('127.0.0.1', 50798)>
outcome.errors.clear()
Failure in client thread in test_connect_accepted_socket [Errno 104] Connection reset by peer
test_connect_accepted_socket (test_tcp.Test_UV_TCP) ... /usr/lib/python3.5/threading.py:862: ResourceWarning: unclosed <ssl.SSLSocket fd=10, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 50798)>
self._target(*self._args, **self._kwargs)
ok
test_create_connection_2 (test_tcp.Test_UV_TCP) ... ok
test_create_connection_3 (test_tcp.Test_UV_TCP) ... ok
test_create_connection_4 (test_tcp.Test_UV_TCP) ... ok
test_create_connection_5 (test_tcp.Test_UV_TCP) ... ok
test_create_connection_open_con_addr (test_tcp.Test_UV_TCP) ... ok
test_create_connection_open_con_sock (test_tcp.Test_UV_TCP) ... ok
test_create_connection_wrong_sock (test_tcp.Test_UV_TCP) ... ok
test_create_server_1 (test_tcp.Test_UV_TCP) ... ok
test_create_server_2 (test_tcp.Test_UV_TCP) ... ok
test_create_server_3 (test_tcp.Test_UV_TCP)
check ephemeral port can be used ... ok
test_create_server_4 (test_tcp.Test_UV_TCP) ... ok
test_create_server_5 (test_tcp.Test_UV_TCP) ... ok
test_create_server_6 (test_tcp.Test_UV_TCP) ... ok
test_create_server_7 (test_tcp.Test_UV_TCP) ... Executing <Task pending coro=<_TestTCP.test_create_server_7.<locals>.test() running at /home/ch/uvloop/tests/test_tcp.py:301> wait_for=<Future pending cb=[Task._wakeup()] created at /home/ch/uvloop/tests/test_tcp.py:301> cb=[run_until_complete.<locals>.<lambda>()] created at /home/ch/uvloop/tests/test_tcp.py:319> took 0.135 seconds
ok
test_create_server_float_backlog (test_tcp.Test_UV_TCP) ... ok
test_create_server_stream_bittype (test_tcp.Test_UV_TCP) ... ok
test_create_server_wrong_sock (test_tcp.Test_UV_TCP) ... ok
test_many_small_writes (test_tcp.Test_UV_TCP) ... ok
test_tcp_handle_abort_in_connection_made (test_tcp.Test_UV_TCP) ... ok
test_tcp_handle_exception_in_connection_made (test_tcp.Test_UV_TCP) ... ok
test_tcp_handle_unclosed_gc (test_tcp.Test_UV_TCP) ... ok
test_transport_get_extra_info (test_tcp.Test_UV_TCP) ... ok
test_transport_shutdown (test_tcp.Test_UV_TCP) ... ok
test_create_connection_ssl_1 (test_tcp.Test_UV_TCPSSL) ... ok
test_create_server_ssl_1 (test_tcp.Test_UV_TCPSSL) ... ok
test_ssl_connect_accepted_socket (test_tcp.Test_UV_TCPSSL) ... ok
test_duplicate_methods (test_testbase.TestBaseTest) ... ok
test_duplicate_methods_parent_1 (test_testbase.TestBaseTest) ... ok
test_duplicate_methods_parent_2 (test_testbase.TestBaseTest) ... ok
test_create_datagram_endpoint_addrs_ipv4 (test_udp.Test_AIO_UDP) ... ok
test_create_datagram_endpoint_addrs_ipv6 (test_udp.Test_AIO_UDP) ... ok
test_create_datagram_endpoint_ipv6_family (test_udp.Test_AIO_UDP) ... ok
test_create_datagram_endpoint_sock (test_udp.Test_AIO_UDP) ... ok
test_create_datagram_endpoint_addrs_ipv4 (test_udp.Test_UV_UDP) ... ok
test_create_datagram_endpoint_addrs_ipv6 (test_udp.Test_UV_UDP) ... ok
test_create_datagram_endpoint_ipv6_family (test_udp.Test_UV_UDP) ... ok
test_create_datagram_endpoint_sock (test_udp.Test_UV_UDP) ... ok
test_create_datagram_endpoint_wrong_sock (test_udp.Test_UV_UDP) ... ok
test_udp_sendto_dns (test_udp.Test_UV_UDP) ... ok
test_create_unix_connection_2 (test_unix.Test_AIO_Unix) ... ok
test_create_unix_connection_3 (test_unix.Test_AIO_Unix) ... ok
test_create_unix_connection_4 (test_unix.Test_AIO_Unix) ... ok
test_create_unix_connection_5 (test_unix.Test_AIO_Unix) ... ok
test_create_unix_connection_open_con_sock (test_unix.Test_AIO_Unix) ... ok
test_create_unix_connection_open_unix_con_addr (test_unix.Test_AIO_Unix) ... ok
test_create_unix_connection_open_unix_con_sock (test_unix.Test_AIO_Unix) ... ok
test_create_unix_server_1 (test_unix.Test_AIO_Unix) ... Executing <Task pending coro=<_TestUnix.test_create_unix_server_1.<locals>.start_server() running at /home/ch/uvloop/tests/test_unix.py:75> wait_for=<Future pending cb=[Task._wakeup()] created at /usr/lib/python3.5/asyncio/base_events.py:252> cb=[_run_until_complete_cb() at /usr/lib/python3.5/asyncio/base_events.py:164] created at /usr/lib/python3.5/asyncio/base_events.py:367> took 0.108 seconds
Executing <Task pending coro=<_TestUnix.test_create_unix_server_1.<locals>.start_server_sock() running at /home/ch/uvloop/tests/test_unix.py:109> wait_for=<Future pending cb=[Task._wakeup()] created at /usr/lib/python3.5/asyncio/base_events.py:252> cb=[_run_until_complete_cb() at /usr/lib/python3.5/asyncio/base_events.py:164] created at /usr/lib/python3.5/asyncio/base_events.py:367> took 0.101 seconds
ok
test_create_unix_server_2 (test_unix.Test_AIO_Unix) ... ok
test_create_unix_server_existing_path_sock (test_unix.Test_AIO_Unix) ... ERROR
test_transport_unclosed_warning (test_unix.Test_AIO_Unix) ... ok
test_create_unix_connection_ssl_1 (test_unix.Test_AIO_UnixSSL) ... ok
test_create_unix_server_ssl_1 (test_unix.Test_AIO_UnixSSL) ... ok
test_create_unix_connection_2 (test_unix.Test_UV_Unix) ... ok
test_create_unix_connection_3 (test_unix.Test_UV_Unix) ... ok
test_create_unix_connection_4 (test_unix.Test_UV_Unix) ... ok
test_create_unix_connection_5 (test_unix.Test_UV_Unix) ... ok
test_create_unix_connection_open_con_sock (test_unix.Test_UV_Unix) ... ok
test_create_unix_connection_open_unix_con_addr (test_unix.Test_UV_Unix) ... ok
test_create_unix_connection_open_unix_con_sock (test_unix.Test_UV_Unix) ... ok
test_create_unix_connection_pathlib (test_unix.Test_UV_Unix) ... skipped 'no os.fspath()'
test_create_unix_server_1 (test_unix.Test_UV_Unix) ... ok
test_create_unix_server_2 (test_unix.Test_UV_Unix) ... ok
test_create_unix_server_existing_path_sock (test_unix.Test_UV_Unix) ... ok
test_create_unix_server_path_dgram (test_unix.Test_UV_Unix) ... ok
test_create_unix_server_path_stream_bittype (test_unix.Test_UV_Unix) ... ok
test_create_unix_server_pathlib (test_unix.Test_UV_Unix) ... skipped 'no os.fspath()'
test_transport_fromsock_get_extra_info (test_unix.Test_UV_Unix) ... ok
test_transport_unclosed_warning (test_unix.Test_UV_Unix) ... ok
test_create_unix_connection_ssl_1 (test_unix.Test_UV_UnixSSL) ... ok
test_create_unix_server_ssl_1 (test_unix.Test_UV_UnixSSL) ... ok
======================================================================
ERROR: test_ssl_connect_accepted_socket (test_tcp.Test_AIO_TCPSSL)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ch/uvloop/tests/test_tcp.py", line 1156, in test_ssl_connect_accepted_socket
self, server_context, client_context)
File "/home/ch/uvloop/tests/test_tcp.py", line 902, in test_connect_accepted_socket
loop.connect_accepted_socket(
AttributeError: '_UnixSelectorEventLoop' object has no attribute 'connect_accepted_socket'
======================================================================
ERROR: test_create_unix_server_existing_path_sock (test_unix.Test_AIO_Unix)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ch/uvloop/tests/test_unix.py", line 166, in test_create_unix_server_existing_path_sock
srv = self.loop.run_until_complete(coro)
File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in run_until_complete
return future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 274, in result
raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/usr/lib/python3.5/asyncio/coroutines.py", line 121, in send
return self.gen.send(value)
File "/usr/lib/python3.5/asyncio/coroutines.py", line 206, in coro
res = func(*args, **kw)
File "/usr/lib/python3.5/asyncio/unix_events.py", line 264, in create_unix_server
raise OSError(errno.EADDRINUSE, msg) from None
OSError: [Errno 98] Address '/tmp/tmph6hkfygr/sock' is already in use
======================================================================
FAIL: test_cython_coro_is_coroutine (test_cython.TestCythonIntegration)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ch/uvloop/tests/test_cython.py", line 14, in test_cython_coro_is_coroutine
self.assertEqual(_format_coroutine(coro), '_test_coroutine_1()')
AssertionError: '_test_coroutine_1() done, defined at uvloop/loop.pyx:2834' != '_test_coroutine_1()'
- _test_coroutine_1() done, defined at uvloop/loop.pyx:2834
+ _test_coroutine_1()
======================================================================
FAIL: test_socket_cancel_sock_sendall (test_sockets.TestUVSockets)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ch/uvloop/uvloop/_testbase.py", line 98, in tearDown
self.fail('unexpected calls to loop.call_exception_handler()')
AssertionError: unexpected calls to loop.call_exception_handler()
----------------------------------------------------------------------
Ran 383 tests in 162.882s
FAILED (failures=2, errors=2, skipped=17)
Makefile:46: recipe for target 'test' failed
make: *** [test] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment