/usr/lib/python3.10/site-packages/cheroot/workers/threadpool.py:181: DeprecationWarning: getName() is deprecated, get the name attribute instead format(worker_name=worker.getName()), /usr/lib/python3.10/site-packages/cheroot/workers/threadpool.py:179: DeprecationWarning: setName() is deprecated, set the name attribute instead worker.setName( /usr/lib/python3.10/site-packages/cheroot/workers/threadpool.py:111: DeprecationWarning: getName() is deprecated, get the name attribute instead self.server.stats['Worker Threads'][self.getName()] = self.stats --- Logging error --- Traceback (most recent call last): File "/usr/lib/python3.10/logging/__init__.py", line 1101, in emit stream.write(msg + self.terminator) ValueError: I/O operation on closed file. Call stack: File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/usr/lib/python3.10/site-packages/pytest/__main__.py", line 5, in raise SystemExit(pytest.console_main()) File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 185, in console_main code = main() File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 162, in main ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main( File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84, in self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 316, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 311, in wrap_session config._ensure_unconfigure() File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 987, in _ensure_unconfigure self.hook.pytest_unconfigure(config=self) File "/usr/lib/python3.10/site-packages/pluggy/hooks.py", line 286, in __call__ return self._hookexec(self, self.get_hookimpls(), kwargs) File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 93, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/lib/python3.10/site-packages/pluggy/manager.py", line 84, in self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( File "/usr/lib/python3.10/site-packages/pluggy/callers.py", line 187, in _multicall res = hook_impl.function(*args) File "/build/python-cachecontrol/src/cachecontrol-0.12.6/tests/conftest.py", line 144, in pytest_unconfigure cherrypy.server.stop() File "/usr/lib/python3.10/site-packages/cherrypy/process/servers.py", line 283, in stop self.bus.log('HTTP Server %s shut down' % self.httpserver) File "/usr/lib/python3.10/site-packages/cherrypy/process/wspbus.py", line 584, in log self.publish('log', msg, level) File "/usr/lib/python3.10/site-packages/cherrypy/process/wspbus.py", line 230, in publish output.append(listener(*args, **kwargs)) File "/usr/lib/python3.10/site-packages/cherrypy/__init__.py", line 352, in _buslog log.error(msg, 'ENGINE', severity=level) File "/usr/lib/python3.10/site-packages/cherrypy/_cplogging.py", line 213, in error self.error_log.log( Message: "[06/Jan/2022:13:42:00] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 53311)) shut down" Arguments: () ============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 rootdir: /build/python-cachecontrol/src/cachecontrol-0.12.6, configfile: setup.cfg collected 74 items / 1 error / 73 selected ==================================== ERRORS ==================================== _______________ ERROR collecting tests/test_storage_filecache.py _______________ ImportError while importing test module '/build/python-cachecontrol/src/cachecontrol-0.12.6/tests/test_storage_filecache.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_storage_filecache.py:13: in from lockfile import LockFile E ModuleNotFoundError: No module named 'lockfile' =============================== warnings summary =============================== ../../../../usr/lib/python3.10/site-packages/packaging/version.py:111: 280 warnings /usr/lib/python3.10/site-packages/packaging/version.py:111: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release warnings.warn( -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ ERROR tests/test_storage_filecache.py !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! ======================== 280 warnings, 1 error in 2.10s ======================== ==> ERROR: A failure occurred in check().  Aborting...