-
Notifications
You must be signed in to change notification settings - Fork 55
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.5.13: pytest warnings and fails #211
Comments
After install + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-nbclient-0.6.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-nbclient-0.6.3-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/nbclient-0.6.3
plugins: asyncio-0.18.2
asyncio: mode=legacy
collected 91 items
nbclient/tests/test_client.py ...................................................................................... [ 94%]
nbclient/tests/test_util.py ..... [100%]
=============================== warnings summary ===============================
../../../../../usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:191
/usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:191: DeprecationWarning: The 'asyncio_mode' default value will change to 'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file.
config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)
nbclient/tests/test_client.py::TestRunCell::test_cell_hooks
nbclient/tests/test_client.py::TestRunCell::test_error_cell_hooks
nbclient/tests/test_client.py::TestRunCell::test_execution_count_message_ignored_on_override
nbclient/tests/test_client.py::TestRunCell::test_non_code_cell_hooks
/usr/lib64/python3.8/unittest/mock.py:2076: RuntimeWarning: coroutine 'make_async.<locals>._' 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.
nbclient/tests/test_client.py::TestRunCell::test_deadline_iopub
/usr/lib64/python3.8/unittest/mock.py:740: RuntimeWarning: coroutine 'make_async.<locals>._' was never awaited
return object.__setattr__(self, name, value)
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.
nbclient/tests/test_client.py::TestRunCell::test_display_data_same_id_message
/usr/lib64/python3.8/enum.py:339: RuntimeWarning: coroutine 'make_async.<locals>._' was never awaited
return cls.__new__(cls, value)
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.
nbclient/tests/test_client.py::TestRunCell::test_eventual_deadline_iopub
/home/tkloczko/rpmbuild/BUILD/nbclient-0.6.3/nbclient/tests/test_client.py:967: RuntimeWarning: coroutine 'make_async.<locals>._' was never awaited
message_mock.side_effect = message_seq(list(message_mock.side_effect)[:-1])
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.
nbclient/tests/test_client.py::TestRunCell::test_eventual_deadline_iopub
/usr/lib64/python3.8/unittest/mock.py:773: RuntimeWarning: coroutine 'make_async.<locals>._' was never awaited
return object.__setattr__(self, name, value)
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.
nbclient/tests/test_client.py::TestRunCell::test_widget_comm_buffer_message_single
/usr/lib/python3.8/site-packages/traitlets/traitlets.py:1561: RuntimeWarning: coroutine 'make_async.<locals>._' was never awaited
if method_name in c.__dict__:
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
================== 91 passed, 10 warnings in 84.08s (0:01:24) ==================
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-2d3c13c5-3e7c-4cca-9e3a-d551473c307b
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-2d3c13c5-3e7c-4cca-9e3a-d551473c307b'
warnings.warn(
sys:1: RuntimeWarning: coroutine 'make_async.<locals>._' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback |
Tested. Thank you 😄 + PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-nbclient-0.6.3-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-nbclient-0.6.3-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/nbclient-0.6.3, configfile: pytest.ini
plugins: asyncio-0.18.2
asyncio: mode=auto
collected 91 items
nbclient/tests/test_client.py ...................................................................................... [ 94%]
nbclient/tests/test_util.py ..... [100%]
======================== 91 passed in 83.97s (0:01:23) =========================
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:79: PytestWarning: (rm_rf) error removing /tmp/pytest-of-tkloczko/garbage-38afec6b-341d-4413-8d4f-22b5dc5ec1e0
<class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-tkloczko/garbage-38afec6b-341d-4413-8d4f-22b5dc5ec1e0'
warnings.warn(
Task was destroyed but it is pending!
task: <Task pending name='Task-91' coro=<NotebookClient._async_poll_output_msg() done, defined at /home/tkloczko/rpmbuild/BUILD/nbclient-0.6.3/nbclient/client.py:793> wait_for=<Future cancelled>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to package 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 modulesTwo units are failing and there some pytest wearnings. Here is pytest output:
The text was updated successfully, but these errors were encountered: