Author: bugman
Date: Tue Feb  3 18:47:41 2015
New Revision: 27495

URL: http://svn.gna.org/viewcvs/relax?rev=27495&view=rev
Log:
Fix for the GUI tests clean_up_windows() tearDown method.

After destroying all of the main GUI windows, a wx.Yield() call is made to 
flush the wxPython event
queue.  This seems to help with the memory management.


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=27495&r1=27494&r2=27495&view=diff
==============================================================================
--- trunk/test_suite/gui_tests/base_classes.py  (original)
+++ trunk/test_suite/gui_tests/base_classes.py  Tue Feb  3 18:47:41 2015
@@ -176,21 +176,25 @@
         # Kill the spin viewer window.
         if hasattr(self.app.gui, 'spin_viewer'):
             self.app.gui.spin_viewer.Destroy()
+            wx.Yield()
             del self.app.gui.spin_viewer
 
         # Kill the pipe editor window.
         if hasattr(self.app.gui, 'pipe_editor'):
             self.app.gui.pipe_editor.Destroy()
+            wx.Yield()
             del self.app.gui.pipe_editor
 
         # Kill the results viewer window.
         if hasattr(self.app.gui, 'results_viewer'):
             self.app.gui.results_viewer.Destroy()
+            wx.Yield()
             del self.app.gui.results_viewer
 
         # Kill the relax prompt window.
         if hasattr(self.app.gui, 'relax_prompt'):
             self.app.gui.relax_prompt.Destroy()
+            wx.Yield()
             del self.app.gui.relax_prompt
 
 


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to