-
Notifications
You must be signed in to change notification settings - Fork 550
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
Please upgrade cython (3.0.x) #586
Comments
I'm trying to use Cython 3.0.6 in the Fedora's uvloop package updated to 0.19.0. I'm getting:
And:
When running the tests. |
ok, my bad about an artificial requirement. You must follow https://cython.readthedocs.io/en/latest/src/userguide/migrating_to_cy30.html |
This comment was marked as outdated.
This comment was marked as outdated.
Notice that it doesn't work with older Cython (<3). The following worked for me in ALT Linux Sisyphus (build log): https://git.altlinux.org/tasks/336746/build/100/x86_64/log.
|
Thank you, @ancieg! I can confirm this makes the tests pass with Cython 3.0.6. |
Bug: MagicStack/uvloop#586 Signed-off-by: Sam James <[email protected]>
Above patch is not enough on use pep517 based build procedure + /usr/bin/python3 -sBm build -w --no-isolation
* Getting build dependencies for wheel...
ERROR Missing dependencies:
Cython<0.30.0,>=0.29.36 On top of that patch needs to be added: --- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@
from setuptools.command.sdist import sdist
-CYTHON_DEPENDENCY = 'Cython(>=0.29.36,<0.30.0)'
+CYTHON_DEPENDENCY = 'Cython(>=0.29.36)'
MACHINE = platform.machine()
_ROOT = pathlib.Path(__file__).parent
LIBUV_DIR = str(_ROOT / 'vendor' / 'libuv')
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -43,7 +43,7 @@
'pycodestyle~=2.9.0',
'pyOpenSSL~=23.0.0',
'mypy>=0.800',
- 'Cython(>=0.29.36,<0.30.0)',
+ 'Cython(>=0.29.36)',
]
docs = [
'Sphinx~=4.1.2',
@@ -55,7 +55,7 @@
requires = [
"setuptools>=60",
"wheel",
- "Cython(>=0.29.36,<0.30.0)",
+ "Cython(>=0.29.36)",
]
build-backend = "setuptools.build_meta"
(if proposed patch still works with |
Just tested proposed patch + my chunks and pytest still fails+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-uvloop-0.19.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-uvloop-0.19.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network' --import-mode importlib
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0
configfile: pyproject.toml
testpaths: tests
collected 504 items
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 ..
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.19.0/uvloop/__init__.py", line 9, in <module>
from uvloop.loop import Loop as __BaseLoop # NOQA
ModuleNotFoundError: No module named 'uvloop.loop'
F...............................................................................
tests/test_process_spawning.py .
tests/test_regr1.py .
tests/test_runner.py ..
tests/test_signals.py F.Traceback (most recent call last):
File "<string>", line 7, in <module>
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/uvloop/__init__.py", line 9, in <module>
from uvloop.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.19.0/uvloop/__init__.py", line 9, in <module>
from uvloop.loop import Loop as __BaseLoop # NOQA
ModuleNotFoundError: No module named 'uvloop.loop'
F.FFFFFF
tests/test_sockets.py ........................ss.......
tests/test_sourcecode.py ss
tests/test_tcp.py ...............................................................s................s.s.ss.ssssssss.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 "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_dealloc.py", line 61, 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[235 chars]\'\n' != b'' : stderr is not empty
_________________________________________________________________________ Test_UV_Process.test_process_double_close _________________________________________________________________________
Traceback (most recent call last):
File "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_process.py", line 863, 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.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 "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/usr/lib64/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 296, 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.19.0/tests/test_signals.py", line 280, 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 667, in uvloop.loop.UVProcessTransport.send_signal
self._check_proc()
File "uvloop/handles/process.pyx", line 401, in uvloop.loop.UVProcessTransport._check_proc
raise ProcessLookupError()
ProcessLookupError
________________________________________________________________________ Test_UV_Signals.test_signals_fork_in_thread ________________________________________________________________________
Traceback (most recent call last):
File "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 382, 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 "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/usr/lib64/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 229, 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.19.0/tests/test_signals.py", line 221, 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 667, in uvloop.loop.UVProcessTransport.send_signal
self._check_proc()
File "uvloop/handles/process.pyx", line 401, in uvloop.loop.UVProcessTransport._check_proc
raise ProcessLookupError()
ProcessLookupError
____________________________________________________________________ Test_UV_Signals.test_signals_sigint_pycode_continue ____________________________________________________________________
Traceback (most recent call last):
File "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/usr/lib64/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 98, 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.19.0/tests/test_signals.py", line 93, 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 667, in uvloop.loop.UVProcessTransport.send_signal
self._check_proc()
File "uvloop/handles/process.pyx", line 401, in uvloop.loop.UVProcessTransport._check_proc
raise ProcessLookupError()
ProcessLookupError
______________________________________________________________________ Test_UV_Signals.test_signals_sigint_pycode_stop ______________________________________________________________________
Traceback (most recent call last):
File "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/usr/lib64/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 53, 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.19.0/tests/test_signals.py", line 48, 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 667, in uvloop.loop.UVProcessTransport.send_signal
self._check_proc()
File "uvloop/handles/process.pyx", line 401, in uvloop.loop.UVProcessTransport._check_proc
raise ProcessLookupError()
ProcessLookupError
________________________________________________________________________ Test_UV_Signals.test_signals_sigint_uvcode _________________________________________________________________________
Traceback (most recent call last):
File "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/usr/lib64/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 137, 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.19.0/tests/test_signals.py", line 133, 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 667, in uvloop.loop.UVProcessTransport.send_signal
self._check_proc()
File "uvloop/handles/process.pyx", line 401, 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 "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/usr/lib64/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 176, 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.19.0/tests/test_signals.py", line 172, 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 667, in uvloop.loop.UVProcessTransport.send_signal
self._check_proc()
File "uvloop/handles/process.pyx", line 401, in uvloop.loop.UVProcessTransport._check_proc
raise ProcessLookupError()
ProcessLookupError
_____________________________________________________________________ Test_UV_Signals.test_signals_wakeup_fd_unchanged ______________________________________________________________________
Traceback (most recent call last):
File "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 348, 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.19.0/tests/test_signals.py", line 345, 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[235 chars]\'\n' != b''
____________________________________________________________________ Test_AIO_Signals.test_signals_and_custom_handler_1 _____________________________________________________________________
Traceback (most recent call last):
File "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/usr/lib64/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 296, 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.19.0/tests/test_signals.py", line 280, 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 1949, 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 "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 382, 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 "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/usr/lib64/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 229, 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.19.0/tests/test_signals.py", line 221, 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 1949, 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 "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/usr/lib64/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 98, 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.19.0/tests/test_signals.py", line 93, 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 1949, 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 "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/usr/lib64/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 53, 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.19.0/tests/test_signals.py", line 48, 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 1949, 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 "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/usr/lib64/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 137, 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.19.0/tests/test_signals.py", line 133, 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 1949, 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 "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/usr/lib64/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 176, 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.19.0/tests/test_signals.py", line 172, 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 1949, 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 "/usr/lib64/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib64/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib64/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_signals.py", line 348, 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.19.0/tests/test_signals.py", line 345, 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[235 chars]\'\n' != b''
===================================================================================== warnings summary ======================================================================================
<frozen importlib._bootstrap>:219
<frozen importlib._bootstrap>:219: UserWarning: enum class uv_fs_event not importable from uvloop.includes.uv. You are probably using a cpdef enum declared in a .pxd file that does not have a .py or .pyx file.
tests/test_aiohttp.py::Test_UV_AioHTTP::test_aiohttp_graceful_shutdown
tests/test_aiohttp.py::Test_AIO_AioHTTP::test_aiohttp_graceful_shutdown
/home/tkloczko/rpmbuild/BUILD/uvloop-0.19.0/tests/test_aiohttp.py:81: NotAppKeyWarning: It is recommended to use web.AppKey instances for keys.
https://docs.aiohttp.org/en/stable/web_advanced.html#application-s-config
app['websockets'] = weakref.WeakSet()
tests/test_aiohttp.py::Test_UV_AioHTTP::test_aiohttp_graceful_shutdown
tests/test_aiohttp.py::Test_AIO_AioHTTP::test_aiohttp_graceful_shutdown
/usr/lib64/python3.8/site-packages/aiohttp/web_runner.py:95: DeprecationWarning: shutdown_timeout should be set on BaseRunner
super().__init__(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-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:578: this seems to be a bug in asyncio
SKIPPED [1] tests/test_dns.py:210: Skipped
SKIPPED [1] tests/test_sockets.py:162: Skipped
SKIPPED [1] tests/test_sockets.py:218: Skipped
SKIPPED [1] tests/test_sourcecode.py:13: flake8 module is missing
SKIPPED [1] tests/test_sourcecode.py:40: mypy module is missing
SKIPPED [2] tests/test_tcp.py:2649: Skipped
SKIPPED [1] tests/test_tcp.py:3018: bpo-39951
SKIPPED [1] tests/test_tcp.py:1764: Skipped
SKIPPED [1] tests/test_tcp.py:1483: Skipped
SKIPPED [1] tests/test_tcp.py:1447: Skipped
SKIPPED [1] tests/test_tcp.py:2074: asyncio does not support SSL over SSL
SKIPPED [1] tests/test_tcp.py:3100: Skipped
SKIPPED [1] tests/test_tcp.py:2581: Skipped
SKIPPED [1] tests/test_tcp.py:2811: Skipped
SKIPPED [1] tests/test_tcp.py:2220: asyncio does not support renegotiation
SKIPPED [1] tests/test_tcp.py:2438: Skipped
SKIPPED [1] tests/test_tcp.py:2340: Skipped
SKIPPED [1] tests/test_tcp.py:2878: Skipped
SKIPPED [1] tests/test_tcp.py:2936: Skipped
SKIPPED [1] tests/test_tcp.py:1535: Skipped
SKIPPED [1] tests/test_tcp.py:1830: Skipped
SKIPPED [1] tests/test_tcp.py:1651: Skipped
SKIPPED [1] tests/test_tcp.py:1700: Skipped
SKIPPED [1] tests/test_tcp.py:1992: Skipped
SKIPPED [1] tests/test_tcp.py:1929: Skipped
SKIPPED [1] tests/test_tcp.py:1520: Skipped
SKIPPED [1] tests/test_tcp.py:2502: Skipped
FAILED tests/test_dealloc.py::TestDealloc::test_dealloc_1 - AssertionError: b'Traceback (most recent call last):\n Fil[235 chars]\'\n' != b'' : stderr is not empty
FAILED tests/test_process.py::Test_UV_Process::test_process_double_close - 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 ...
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_fork_in_thread - subprocess.CalledProcessError: Command '['/usr/bin/python3', b'-W', b'ignore', b'-c', "\\\nimport asyncio\nimport multiprocessing\nimport signal\nimport sys\nimport threading\nimport u...
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_signals_wakeup_fd_unchanged - AssertionError: b'Traceback (most recent call last):\n Fil[235 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_fork_in_thread - subprocess.CalledProcessError: Command '['/usr/bin/python3', b'-W', b'ignore', b'-c', "\\\nimport asyncio\nimport multiprocessing\nimport signal\nimport sys\nimport threading\nimport u...
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_signals_wakeup_fd_unchanged - AssertionError: b'Traceback (most recent call last):\n Fil[235 chars]\'\n' != b''
============================================================= 18 failed, 455 passed, 31 skipped, 5 warnings in 89.92s (0:01:29) ============================================================= If someone may help on resolve pytest issue please continue on #429 |
Bug: MagicStack/uvloop#586 Bug: MagicStack/uvloop#587 Signed-off-by: Sam James <[email protected]>
See #587. |
Think this can now be closed |
This is seem an artificial requirement:
https://github.com/MagicStack/uvloop/blob/master/setup.py#L24
Could you please test it with newer version and update?
Thanks
The text was updated successfully, but these errors were encountered: