--- a/src/eric7/DebugClients/Python/coverage/collector.py Sat Oct 01 17:30:55 2022 +0200 +++ b/src/eric7/DebugClients/Python/coverage/collector.py Sat Oct 01 17:37:10 2022 +0200 @@ -285,6 +285,8 @@ # for running code before the thread main is the tracing function. So we # install this as a trace function, and the first time it's called, it does # the real trace installation. + # + # New in 3.12: threading.settrace_all_threads: https://github.com/python/cpython/pull/96681 def _installation_trace(self, frame, event, arg): """Called on new threads, installs the real tracer.""" @@ -432,7 +434,7 @@ else: raise runtime_err # pragma: cant happen - return {self.cached_mapped_file(k): v for k, v in items if v} + return {self.cached_mapped_file(k): v for k, v in items} def plugin_was_disabled(self, plugin): """Record that `plugin` was disabled during the run."""