Skip to content

chore: Fix warning in tests/devices/test_device_manager.py #412

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

Merged

Conversation

allenporter
Copy link
Contributor

@allenporter allenporter commented Jul 5, 2025

Fix warning in device manager test due to the unsub value being assumed a coroutine.

tests/devices/test_device_manager.py::test_with_device
tests/devices/test_device_manager.py::test_get_non_existent_device
/Users/allen/Development/python-roborock/roborock/devices/device.py:100: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
self._unsub()
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.

@allenporter allenporter merged commit ec780c9 into Python-roborock:main Jul 5, 2025
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants