From 6cf13d112bd619c487d8ef50f6854b94a0cb86bd Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 4 Oct 2018 23:48:37 +0100 Subject: [PATCH] [Tests] Remove debug traceback --- deluge/tests/test_files_tab.py | 8 ++------ deluge/tests/test_torrentview.py | 10 +++------- 2 files changed, 5 insertions(+), 13 deletions(-) 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()