From 19bc2268d48098955d0473ede5c02cab1707bc5d Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Wed, 19 Jun 2013 19:20:44 +0200 Subject: [PATCH] Log the UI tree on error The dump method doesn't actually print anything, just returns the tree as a string. --- src/sugar3/test/unittest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sugar3/test/unittest.py b/src/sugar3/test/unittest.py index ea891064..aba715bd 100644 --- a/src/sugar3/test/unittest.py +++ b/src/sugar3/test/unittest.py @@ -51,7 +51,7 @@ class UITestCase(unittest.TestCase): try: yield except: - uitree.get_root().dump() + logging.debug(uitree.get_root().dump()) raise finally: process.terminate()