Author: bugman Date: Tue Feb 3 14:11:32 2015 New Revision: 27462 URL: http://svn.gna.org/viewcvs/relax?rev=27462&view=rev Log: Shifted the printouts from the GUI tests suite clean_up_windows() method to the tearDown() method. This change means that the printouts are not within a wx.CallAfter() call, but rather at the end of the tearDown() method just prior to starting the next test. Modified: trunk/test_suite/gui_tests/base_classes.py Modified: trunk/test_suite/gui_tests/base_classes.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/base_classes.py?rev=27462&r1=27461&r2=27462&view=diff ============================================================================== --- trunk/test_suite/gui_tests/base_classes.py (original) +++ trunk/test_suite/gui_tests/base_classes.py Tue Feb 3 14:11:32 2015 @@ -166,14 +166,6 @@ if hasattr(self.app.gui, 'spin_viewer'): self.app.gui.spin_viewer.Destroy() del self.app.gui.spin_viewer - - # Print out a list of all living windows - to help ensure that custom Close() and Destroy() methods are cleaning up all objects. - print("\n\nList of remaining wx Windows (this should only be the main GUI window and the relax controller):") - for window in wx.GetTopLevelWindows(): - print(" Window: %s" % window) - if isinstance(window, Wiz_window): - print(" Wizard pages: %s" % window._pages) - print("\n\n\n") def new_analysis_wizard(self, analysis_type=None, analysis_name=None, pipe_name=None, pipe_bundle=None): @@ -288,3 +280,11 @@ # Flush all wx events again to allow the reset event to propagate throughout the GUI and the execution lock to be released before the next test starts. wx.Yield() + + # Print out a list of all living windows to help ensure that custom Close() and Destroy() methods are cleaning up all objects. + print("\n\nList of all living GUI elements - this must only include the main GUI window and the relax controller:") + for window in wx.GetTopLevelWindows(): + print(" Window: %s" % window) + if isinstance(window, Wiz_window): + print(" Wizard pages: %s" % window._pages) + print("\n\n\n")