============================= test session starts ============================== platform linux -- Python 3.10.4, pytest-7.1.1, pluggy-1.0.0 rootdir: /var/lib/gitlab-runner/builds/UmwmPxhA/0/platypush/platypush, configfile: pyproject.toml plugins: regressions-2.2.0, datadir-1.3.1 collected 10 items tests/test_cron.py .. [ 20%] tests/test_event_parse.py . [ 30%] tests/test_http.py ..... [ 80%] tests/test_procedure.py .. [100%] =============================== warnings summary =============================== ../../../../../../../../usr/lib/python3.10/site-packages/redis/connection.py:1 /usr/lib/python3.10/site-packages/redis/connection.py:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.version import LooseVersion ../../../../../../../../usr/lib/python3.10/site-packages/redis/connection.py:72 /usr/lib/python3.10/site-packages/redis/connection.py:72: UserWarning: redis-py works best with hiredis. Please consider installing warnings.warn(msg) tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution :572: DeprecationWarning: find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution :1523: DeprecationWarning: FileFinder.find_loader() is deprecated and slated for removal in Python 3.12; use find_spec() instead tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution tests/test_cron.py::test_cron_execution :283: DeprecationWarning: the load_module() method is deprecated and slated for removal in Python 3.12; use exec_module() instead tests/test_cron.py::test_cron_execution_upon_system_clock_change /usr/lib/python3.10/site-packages/_pytest/threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread test_cron.cron_test Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner self.run() File "/var/lib/gitlab-runner/builds/UmwmPxhA/0/platypush/platypush/platypush/cron/scheduler.py", line 62, in run self.wait() File "/var/lib/gitlab-runner/builds/UmwmPxhA/0/platypush/platypush/platypush/cron/scheduler.py", line 93, in wait next_run = cron.get_next(datetime.datetime) File "/usr/lib/python3.10/site-packages/croniter/croniter.py", line 168, in get_next return self._get_next(ret_type or self._ret_type, is_prev=False) File "/usr/lib/python3.10/site-packages/croniter/croniter.py", line 247, in _get_next result = self._calc(self.cur, expanded, File "/usr/lib/python3.10/site-packages/croniter/croniter.py", line 327, in _calc now = math.floor(now) TypeError: must be real number, not datetime.datetime warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================= 10 passed, 21 warnings in 10.61s =======================