Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.15.3: pytest is failing #429

Open
kloczek opened this issue Jul 31, 2021 · 1 comment
Open

0.15.3: pytest is failing #429

kloczek opened this issue Jul 31, 2021 · 1 comment

Comments

@kloczek
Copy link

kloczek commented Jul 31, 2021

  • uvloop version: 0.15.3
  • Python version: 3.8.11
  • Platform: Linux/x86_64
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: Yes
  • Does uvloop behave differently from vanilla asyncio? How?: N/A

Just normal build, install and test cycle used on building package from non-root account:

  • "setup.py build"
  • "setup.py install --root </install/prefix>"
  • "pytest with PYTHONPATH pointing to setearch and sitelib inside </install/prefix>
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/build/lib.linux-x86_64-3.8
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.11, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3, configfile: pytest.ini, testpaths: tests
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, cov-2.12.1, pyfakefs-4.5.0, flaky-3.7.0, benchmark-3.4.1, xdist-2.3.0, pylama-7.7.1, datadir-1.3.1, regressions-2.2.0, cases-3.6.3, hypothesis-6.14.4, Faker-8.10.3, xprocess-0.18.1, black-0.3.12
collected 495 items

tests/test_aiohttp.py ....
tests/test_base.py .................................................................................s...
tests/test_context.py ..................s....s......
tests/test_cython.py F
tests/test_dealloc.py F
tests/test_dns.py ....................s..............................
tests/test_executors.py ....
tests/test_pipes.py ............
tests/test_process.py ...............................................................................
tests/test_process_spawning.py .
tests/test_regr1.py .
tests/test_signals.py sF...FFFFFFF..FFFFFF
tests/test_sockets.py ...............s.........ss..s.....
tests/test_sourcecode.py F.
tests/test_tcp.py ..............................s..................................................s.s.ss.ssss.sss.ss..ssssssss
tests/test_testbase.py ...
tests/test_udp.py .......................
tests/test_unix.py ..................................

================================================================================= FAILURES =================================================================================
___________________________________________________________ TestCythonIntegration.test_cython_coro_is_coroutine ____________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/tests/test_cython.py", line 14, in test_cython_coro_is_coroutine
    self.assertTrue(
  File "/usr/lib64/python3.8/unittest/case.py", line 765, in assertTrue
    raise self.failureException(msg)
AssertionError: False is not true
________________________________________________________________________ TestDealloc.test_dealloc_1 ________________________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/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_Signals.test_signals_and_custom_handler_1 _____________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/tests/test_signals.py", line 298, in test_signals_and_custom_handler_1
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/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 653, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 384, in uvloop.loop.UVProcessTransport._check_proc
    raise ProcessLookupError()
ProcessLookupError
__________________________________________________________ Test_UV_Signals.test_signals_sigint_and_custom_handler __________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/tests/test_signals.py", line 231, in test_signals_sigint_and_custom_handler
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/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 653, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 384, 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.15.3/tests/test_signals.py", line 100, in test_signals_sigint_pycode_continue
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/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 653, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 384, 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.15.3/tests/test_signals.py", line 55, in test_signals_sigint_pycode_stop
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/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 653, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 384, 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.15.3/tests/test_signals.py", line 139, in test_signals_sigint_uvcode
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/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 653, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 384, 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.15.3/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 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/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 653, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 384, in uvloop.loop.UVProcessTransport._check_proc
    raise ProcessLookupError()
ProcessLookupError
_________________________________________________________________ Test_UV_Signals.test_wakeup_fd_unchanged _________________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/tests/test_signals.py", line 350, in test_wakeup_fd_unchanged
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/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.15.3/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.15.3/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_sigint_and_custom_handler __________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/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.15.3/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.15.3/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.15.3/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.15.3/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.15.3/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.15.3/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.15.3/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.15.3/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.15.3/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_wakeup_fd_unchanged _________________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/tests/test_signals.py", line 350, in test_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.15.3/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''
________________________________________________________________________ TestSourceCode.test_flake8 ________________________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.15.3/tests/test_sourcecode.py", line 34, in test_flake8
    raise AssertionError(
AssertionError: flake8 validation failed:
./_testbase.py:288:11: H101: Use TODO(NAME)
./loop.pxd:7:34: H301: one import per line
./loop.pyi:3:33: H301: one import per line
./loop.pyi:5:7: H301: one import per line
./loop.pyx:10:19: H301: one import per line
./loop.pyx:28:32: H301: one import per line
./loop.pyx:32:40: H301: one import per line
./loop.pyx:34:31: H301: one import per line
./loop.pyx:36:23: H301: one import per line
./loop.pyx:2344:1: H405: multi line docstring summary not separated with an empty line
./loop.pyx:2345:1: H405: multi line docstring summary not separated with an empty line
./loop.pyx:2728:11: H101: Use TODO(NAME)
./loop.pyx:2881:19: H101: Use TODO(NAME)
./sslproto.pyx:17:7: H101: Use TODO(NAME)
./sslproto.pyx:391:1: H405: multi line docstring summary not separated with an empty line
./sslproto.pyx:392:1: H405: multi line docstring summary not separated with an empty line
./sslproto.pyx:393:1: H405: multi line docstring summary not separated with an empty line
./sslproto.pyx:394:1: H405: multi line docstring summary not separated with an empty line
./sslproto.pyx:395:1: H405: multi line docstring summary not separated with an empty line
./sslproto.pyx:396:1: H405: multi line docstring summary not separated with an empty line
./sslproto.pyx:397:1: H405: multi line docstring summary not separated with an empty line
./sslproto.pyx:912:1: H405: multi line docstring summary not separated with an empty line
./sslproto.pyx:913:1: H405: multi line docstring summary not separated with an empty line
./sslproto.pyx:914:1: H405: multi line docstring summary not separated with an empty line
./sslproto.pyx:919:1: H405: multi line docstring summary not separated with an empty line
./sslproto.pyx:920:1: H405: multi line docstring summary not separated with an empty line
./sslproto.pyx:921:1: H405: multi line docstring summary not separated with an empty line
./includes/uv.pxd:1:34: H301: one import per line
./includes/uv.pxd:2:31: H301: one import per line

============================================================================= warnings summary =============================================================================
../../../../../usr/lib/python3.8/site-packages/_pytest/config/__init__.py:1183
  /usr/lib/python3.8/site-packages/_pytest/config/__init__.py:1183: PytestDeprecationWarning: The --strict option is deprecated, use --strict-markers instead.
    self.issue_config_time_warning(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_base.py:695: Skipped
SKIPPED [1] tests/test_context.py:435: this seems to be a bug in asyncio
SKIPPED [1] tests/test_context.py:574: this seems to be a bug in asyncio
SKIPPED [1] tests/test_dns.py:158: Skipped
SKIPPED [1] tests/test_signals.py:362: 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_tcp.py:1021: 3.8 has a different method of GCing unclosed streams
SKIPPED [1] tests/test_tcp.py:3012: bpo-39951
SKIPPED [1] tests/test_tcp.py:1762: Skipped
SKIPPED [1] tests/test_tcp.py:1481: Skipped
SKIPPED [1] tests/test_tcp.py:1445: Skipped
SKIPPED [1] tests/test_tcp.py:2072: asyncio does not support SSL over SSL
SKIPPED [1] tests/test_tcp.py:3094: Skipped
SKIPPED [1] tests/test_tcp.py:2579: Skipped
SKIPPED [1] tests/test_tcp.py:2805: Skipped
SKIPPED [1] tests/test_tcp.py:2218: asyncio does not support renegotiation
SKIPPED [1] tests/test_tcp.py:2436: Skipped
SKIPPED [1] tests/test_tcp.py:2338: Skipped
SKIPPED [1] tests/test_tcp.py:2872: Skipped
SKIPPED [1] tests/test_tcp.py:2930: Skipped
SKIPPED [1] tests/test_tcp.py:1533: Skipped
SKIPPED [1] tests/test_tcp.py:1828: Skipped
SKIPPED [1] tests/test_tcp.py:1649: Skipped
SKIPPED [1] tests/test_tcp.py:1698: Skipped
SKIPPED [1] tests/test_tcp.py:1990: Skipped
SKIPPED [1] tests/test_tcp.py:1927: Skipped
SKIPPED [1] tests/test_tcp.py:1518: Skipped
SKIPPED [1] tests/test_tcp.py:2500: Skipped
FAILED tests/test_cython.py::TestCythonIntegration::test_cython_coro_is_coroutine - AssertionError: False is not true
FAILED tests/test_dealloc.py::TestDealloc::test_dealloc_1 - AssertionError: b'Traceback (most recent call last):\n  Fil[229 chars]\'\n' != b'' : stderr is not empty
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_and_custom_handler_1 - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_and_custom_handler - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_pycode_continue - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_pycode_stop - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_uvcode - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_uvcode_two_loop_runs - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_wakeup_fd_unchanged - AssertionError: b'Traceback (most recent call last):\n  Fil[229 chars]\'\n' != b''
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_and_custom_handler_1 - ProcessLookupError: [Errno 3] No such process
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_and_custom_handler - ProcessLookupError: [Errno 3] No such process
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_pycode_continue - ProcessLookupError: [Errno 3] No such process
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_pycode_stop - ProcessLookupError: [Errno 3] No such process
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_uvcode - ProcessLookupError: [Errno 3] No such process
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_uvcode_two_loop_runs - ProcessLookupError: [Errno 3] No such process
FAILED tests/test_signals.py::Test_AIO_Signals::test_wakeup_fd_unchanged - AssertionError: b'Traceback (most recent call last):\n  Fil[229 chars]\'\n' != b''
FAILED tests/test_sourcecode.py::TestSourceCode::test_flake8 - AssertionError: flake8 validation failed:
==================================================== 17 failed, 447 passed, 31 skipped, 1 warning in 180.40s (0:03:00) =====================================================
pytest-xprocess reminder::Be sure to terminate the started process by running 'pytest --xkill' if you have not explicitly done so in your fixture with 'xprocess.getinfo(<process_name>).terminate()'.
@kloczek
Copy link
Author

kloczek commented Apr 18, 2022

Just tested 0.16.0. Looks like it is a bit better however stil l15 units are failing

================================================================================= FAILURES =================================================================================
________________________________________________________________________ TestDealloc.test_dealloc_1 ________________________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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_Signals.test_signals_and_custom_handler_1 _____________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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 653, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 384, in uvloop.loop.UVProcessTransport._check_proc
    raise ProcessLookupError()
ProcessLookupError
__________________________________________________________ Test_UV_Signals.test_signals_sigint_and_custom_handler __________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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 653, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 384, 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.16.0/tests/test_signals.py", line 100, in test_signals_sigint_pycode_continue
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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 653, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 384, 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.16.0/tests/test_signals.py", line 55, in test_signals_sigint_pycode_stop
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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 653, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 384, 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.16.0/tests/test_signals.py", line 139, in test_signals_sigint_uvcode
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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 653, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 384, 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.16.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 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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 653, in uvloop.loop.UVProcessTransport.send_signal
    self._check_proc()
  File "uvloop/handles/process.pyx", line 384, in uvloop.loop.UVProcessTransport._check_proc
    raise ProcessLookupError()
ProcessLookupError
_________________________________________________________________ Test_UV_Signals.test_wakeup_fd_unchanged _________________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 350, in test_wakeup_fd_unchanged
    self.loop.run_until_complete(runner())
  File "uvloop/loop.pyx", line 1501, in uvloop.loop.Loop.run_until_complete
    return future.result()
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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.16.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.16.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_sigint_and_custom_handler __________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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.16.0/tests/test_signals.py", line 227, 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_sigint_pycode_continue ___________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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.16.0/tests/test_signals.py", line 97, 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_sigint_pycode_stop _____________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.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.16.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.16.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.16.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.16.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.16.0/tests/test_signals.py", line 176, in runner
    self.assertIn(b'KeyboardInterrupt', err)
  File "/usr/lib64/python3.8/unittest/case.py", line 1179, in assertIn
    self.fail(self._formatMessage(msg, standardMsg))
  File "/usr/lib64/python3.8/unittest/case.py", line 753, in fail
    raise self.failureException(msg)
AssertionError: b'KeyboardInterrupt' not found in b'Traceback (most recent call last):\n  File "<string>", line 3, in <module>\n  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/uvloop/__init__.py", line 7, in <module>\n    from .loop import Loop as __BaseLoop  # NOQA\nModuleNotFoundError: No module named \'uvloop.loop\'\n'
________________________________________________________________ Test_AIO_Signals.test_wakeup_fd_unchanged _________________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.16.0/tests/test_signals.py", line 350, in test_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.16.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''
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/test_base.py:695: Skipped
SKIPPED [1] tests/test_context.py:435: this seems to be a bug in asyncio
SKIPPED [1] tests/test_context.py:574: this seems to be a bug in asyncio
SKIPPED [1] tests/test_dns.py:158: Skipped
SKIPPED [1] tests/test_signals.py:362: 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 moudule is missing
SKIPPED [1] tests/test_tcp.py:1021: 3.8 has a different method of GCing unclosed streams
SKIPPED [1] tests/test_tcp.py:3012: bpo-39951
SKIPPED [1] tests/test_tcp.py:1762: Skipped
SKIPPED [1] tests/test_tcp.py:1481: Skipped
SKIPPED [1] tests/test_tcp.py:1445: Skipped
SKIPPED [1] tests/test_tcp.py:2072: asyncio does not support SSL over SSL
SKIPPED [1] tests/test_tcp.py:3094: Skipped
SKIPPED [1] tests/test_tcp.py:2579: Skipped
SKIPPED [1] tests/test_tcp.py:2805: Skipped
SKIPPED [1] tests/test_tcp.py:2218: asyncio does not support renegotiation
SKIPPED [1] tests/test_tcp.py:2436: Skipped
SKIPPED [1] tests/test_tcp.py:2338: Skipped
SKIPPED [1] tests/test_tcp.py:2872: Skipped
SKIPPED [1] tests/test_tcp.py:2930: Skipped
SKIPPED [1] tests/test_tcp.py:1533: Skipped
SKIPPED [1] tests/test_tcp.py:1828: Skipped
SKIPPED [1] tests/test_tcp.py:1649: Skipped
SKIPPED [1] tests/test_tcp.py:1698: Skipped
SKIPPED [1] tests/test_tcp.py:1990: Skipped
SKIPPED [1] tests/test_tcp.py:1927: Skipped
SKIPPED [1] tests/test_tcp.py:1518: Skipped
SKIPPED [1] tests/test_tcp.py:2500: Skipped
FAILED tests/test_dealloc.py::TestDealloc::test_dealloc_1 - AssertionError: b'Traceback (most recent call last):\n  Fil[229 chars]\'\n' != b'' : stderr is not empty
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_and_custom_handler_1 - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_and_custom_handler - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_pycode_continue - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_pycode_stop - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_uvcode - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_signals_sigint_uvcode_two_loop_runs - ProcessLookupError
FAILED tests/test_signals.py::Test_UV_Signals::test_wakeup_fd_unchanged - AssertionError: b'Traceback (most recent call last):\n  Fil[229 chars]\'\n' != b''
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_and_custom_handler_1 - ProcessLookupError: [Errno 3] No such process
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_and_custom_handler - AssertionError: b'Traceback (most recent call last):\n  Fil[229 chars]\'\n' != b''
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_pycode_continue - AssertionError: b'Traceback (most recent call last):\n  Fil[229 chars]\'\n' != b''
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_pycode_stop - ProcessLookupError: [Errno 3] No such process
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_uvcode - ProcessLookupError: [Errno 3] No such process
FAILED tests/test_signals.py::Test_AIO_Signals::test_signals_sigint_uvcode_two_loop_runs - AssertionError: b'KeyboardInterrupt' not found in b'Traceback (most recent cal...
FAILED tests/test_signals.py::Test_AIO_Signals::test_wakeup_fd_unchanged - AssertionError: b'Traceback (most recent call last):\n  Fil[229 chars]\'\n' != b''
=================================================== 15 failed, 446 passed, 33 skipped, 2 deselected in 108.09s (0:01:48) ===================================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant