mailr27455 - /trunk/test_suite/gui_tests/base_classes.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on February 03, 2015 - 12:20:
Author: bugman
Date: Tue Feb  3 12:20:51 2015
New Revision: 27455

URL: http://svn.gna.org/viewcvs/relax?rev=27455&view=rev
Log:
Modified the GUI test suite tearDown() method.

The clean_up_windows() method called by tearDown() now prints out a lost of 
all of the living
windows instead of trying to destroy them (which causes the running of the 
GUI tests in the GUI to
cause the GUI to be destroyed).  The printouts will be used for debugging 
purposes.


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=27455&r1=27454&r2=27455&view=diff
==============================================================================
--- trunk/test_suite/gui_tests/base_classes.py  (original)
+++ trunk/test_suite/gui_tests/base_classes.py  Tue Feb  3 12:20:51 2015
@@ -171,10 +171,12 @@
             self.app.gui.spin_viewer.Destroy()
             del self.app.gui.spin_viewer
 
-        # Kill all other windows.
+        # 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():
-            if window:
-                window.Destroy()
+            print("    Window: %s" % window)
+            if isinstance(window, Wiz_window):
+                print("        Wizard pages: %s" % window._pages)
 
 
     def new_analysis_wizard(self, analysis_type=None, analysis_name=None, 
pipe_name=None, pipe_bundle=None):




Related Messages


Powered by MHonArc, Updated Tue Feb 03 12:40:02 2015