--- a/eric7/UI/UserInterface.py Wed Aug 25 17:44:36 2021 +0200 +++ b/eric7/UI/UserInterface.py Thu Aug 26 18:08:46 2021 +0200 @@ -6393,9 +6393,8 @@ if dlg.exec() == QDialog.DialogCode.Accepted: # recent files, recent projects, recent multi projects, # debug histories, shell histories - (files, projects, multiProjects, debug, shell, vcs, plugins) = ( - dlg.getData() - ) + (files, projects, multiProjects, debug, shell, unittests, vcs, + plugins) = dlg.getData() if files: # clear list of recently opened files self.viewmanager.clearRecent() @@ -6411,6 +6410,13 @@ if shell: # clear the shell histories self.shell.clearAllHistories() + if unittests: + # clear the unit test histories + if self.unittestDialog is None: + from PyUnit.UnittestDialog import clearSavedHistories + clearSavedHistories() + else: + self.unittestDialog.clearRecent() if vcs: # clear the VCS related histories self.pluginManager.clearPluginsPrivateData("version_control")