mailr16538 - /branches/uf_redesign/test_suite/gui_tests/dead_uf_pages.py


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

Header


Content

Posted by edward on May 30, 2012 - 18:04:
Author: bugman
Date: Wed May 30 18:04:37 2012
New Revision: 16538

URL: http://svn.gna.org/viewcvs/relax?rev=16538&view=rev
Log:
Fix for racing in the Dead_uf_pages.test_mol_create() GUI test.

The GUI interpreter object flush() method is now being used after each user 
function, as they are
operating asynchronously!


Modified:
    branches/uf_redesign/test_suite/gui_tests/dead_uf_pages.py

Modified: branches/uf_redesign/test_suite/gui_tests/dead_uf_pages.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/test_suite/gui_tests/dead_uf_pages.py?rev=16538&r1=16537&r2=16538&view=diff
==============================================================================
--- branches/uf_redesign/test_suite/gui_tests/dead_uf_pages.py (original)
+++ branches/uf_redesign/test_suite/gui_tests/dead_uf_pages.py Wed May 30 
18:04:37 2012
@@ -31,6 +31,7 @@
 from test_suite.gui_tests.base_classes import GuiTestCase
 
 # relax GUI imports.
+from gui.interpreter import Interpreter; interpreter = Interpreter()
 from gui.uf_objects import Uf_storage; uf_store = Uf_storage()
 
 
@@ -49,16 +50,19 @@
             # Call the object, then simulate the 'ok' click.
             mol_create(mol_name='x', mol_type='protein')
             mol_create.wizard._ok()
+            interpreter.flush()
         except RelaxNoPipeError, instance:
             sys.stderr.write(instance.__str__())
 
         # Create a data pipe.
         pipe_create(pipe_name='test', pipe_type='mf')
         pipe_create.wizard._ok()
+        interpreter.flush()
 
         # Try to create the molecule a second time.
         mol_create(mol_name='x', mol_type='protein')
         mol_create.wizard._ok()
+        interpreter.flush()
 
         # Checks.
         self.assertEqual(len(cdp.mol), 1)




Related Messages


Powered by MHonArc, Updated Wed May 30 18:20:02 2012