diff options
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/uitest/framework.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/uitest/uitest/framework.py b/uitest/uitest/framework.py index f21d72bd9b12..7149132c3508 100644 --- a/uitest/uitest/framework.py +++ b/uitest/uitest/framework.py @@ -35,13 +35,13 @@ class UITestCase(unittest.TestCase): t = time.time() - self.startTime print("Execution time for %s: %.3f" % (self.id(), t)) if self.xContext is not None: - desktop = self.ui_test.get_desktop() - components = desktop.getComponents() - for component in components: - try: - component.close(False) - except Exception as e: - print(e) + try: + desktop = self.ui_test.get_desktop() + components = desktop.getComponents() + for component in components: + component.close(False) + except Exception as e: + print(e) self.connection.tearDown() finally: |