-
-
Notifications
You must be signed in to change notification settings - Fork 596
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
5.10.0: pytest is failing #1270
Comments
See tox.ini for the list of packages that need to be installed for unit tests. |
Looks like only missing module was Thank you for the hints 👍 😄 After add those module fixed pytest which now is finishing with exit 0 however I see some warnings + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-socketio-5.10.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-socketio-5.10.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network'
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/tkloczko/rpmbuild/BUILD/python-socketio-5.10.0
plugins: timeout-2.2.0
collected 570 items
tests/async/test_admin.py .......... [ 1%]
tests/async/test_client.py ....................................................................... [ 14%]
tests/async/test_manager.py .............................. [ 19%]
tests/async/test_namespace.py ..................... [ 23%]
tests/async/test_pubsub_manager.py .................................. [ 29%]
tests/async/test_server.py ......................................................................... [ 41%]
tests/async/test_simple_client.py ................ [ 44%]
tests/common/test_admin.py ......... [ 46%]
tests/common/test_client.py .................................................................................... [ 61%]
tests/common/test_manager.py ............................... [ 66%]
tests/common/test_middleware.py ... [ 67%]
tests/common/test_msgpack_packet.py .... [ 67%]
tests/common/test_namespace.py .................. [ 70%]
tests/common/test_packet.py ...................................... [ 77%]
tests/common/test_pubsub_manager.py .................................... [ 83%]
tests/common/test_server.py ............................................................................ [ 97%]
tests/common/test_simple_client.py ................ [100%]
===================================================================================== warnings summary ======================================================================================
tests/async/test_client.py::TestAsyncClient::test_send
/usr/lib64/python3.8/unittest/mock.py:526: RuntimeWarning: coroutine 'Event.wait' was never awaited
ret = self._get_child_mock(
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
tests/async/test_client.py::TestAsyncClient::test_trigger_event
/usr/lib64/python3.8/unittest/mock.py:2076: RuntimeWarning: coroutine 'Event.wait' was never awaited
self.name = name
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
tests/async/test_manager.py::TestAsyncManager::test_close_invalid_room
/home/tkloczko/rpmbuild/BUILD/python-socketio-5.10.0/tests/async/test_manager.py:195: RuntimeWarning: coroutine 'AsyncManager.close_room' was never awaited
self.bm.close_room('bar', '/foo')
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
tests/async/test_manager.py::TestAsyncManager::test_disconnect_with_callbacks
/usr/lib64/python3.8/unittest/mock.py:2030: RuntimeWarning: coroutine 'TestAsyncClient.test_wait_reconnect_successful.<locals>.fake_wait' was never awaited
setattr(_type, entry, MagicProxy(entry, self))
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================================================== 570 passed, 4 warnings in 128.87s (0:02:08) ======================================================================== |
@kloczek the same warnings exist in the official builds. I will look at them. |
Thank you for the confirmation 👍 |
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Here is pytest output:
Here is list of installed modules in build env
The text was updated successfully, but these errors were encountered: