diff --git a/deluge/tests/test_files_tab.py b/deluge/tests/test_files_tab.py index c99f7902c..109f67a02 100644 --- a/deluge/tests/test_files_tab.py +++ b/deluge/tests/test_files_tab.py @@ -21,15 +21,11 @@ from .basetest import BaseTestCase libs_available = True # Allow running other tests without GTKUI dependencies available try: - from deluge.ui.gtkui.mainwindow import MainWindow - from deluge.ui.gtkui.gtkui import DEFAULT_PREFS from deluge.ui.gtkui.files_tab import FilesTab - + from deluge.ui.gtkui.gtkui import DEFAULT_PREFS + from deluge.ui.gtkui.mainwindow import MainWindow except ImportError as err: libs_available = False - import traceback - - traceback.print_exc() setup_translations() diff --git a/deluge/tests/test_torrentview.py b/deluge/tests/test_torrentview.py index 3badb20da..01a6bd67b 100644 --- a/deluge/tests/test_torrentview.py +++ b/deluge/tests/test_torrentview.py @@ -26,18 +26,14 @@ try: except ImportError as err: libs_available = False TYPE_UINT64 = 'Whatever' - import traceback - - traceback.print_exc() else: libs_available = True - from deluge.ui.gtkui.mainwindow import ( - MainWindow, - ) # pylint: disable=ungrouped-imports + # pylint: disable=ungrouped-imports + from deluge.ui.gtkui.gtkui import DEFAULT_PREFS + from deluge.ui.gtkui.mainwindow import MainWindow from deluge.ui.gtkui.menubar import MenuBar from deluge.ui.gtkui.torrentdetails import TorrentDetails from deluge.ui.gtkui.torrentview import TorrentView - from deluge.ui.gtkui.gtkui import DEFAULT_PREFS setup_translations()