mailr21683 - /trunk/test_suite/gui_tests/relax_disp.py


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

Header


Content

Posted by edward on November 27, 2013 - 17:09:
Author: bugman
Date: Wed Nov 27 17:09:41 2013
New Revision: 21683

URL: http://svn.gna.org/viewcvs/relax?rev=21683&view=rev
Log:
Avoided some wxPython 2.9.4.1 in the Relax_disp GUI tests.

wxPython is quite buggy, so certain checks and tests cannot be performed.


Modified:
    trunk/test_suite/gui_tests/relax_disp.py

Modified: trunk/test_suite/gui_tests/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/relax_disp.py?rev=21683&r1=21682&r2=21683&view=diff
==============================================================================
--- trunk/test_suite/gui_tests/relax_disp.py (original)
+++ trunk/test_suite/gui_tests/relax_disp.py Wed Nov 27 17:09:41 2013
@@ -284,18 +284,20 @@
         analysis.peak_intensity.on_right_click(Fake_right_click())
 
         # Simulate the popup menu entries to catch bugs there (just apply 
the user functions with the currently set values).
-        analysis.peak_intensity.action_relax_disp_cpmg_frq(item=4)
-        uf_store['relax_disp.cpmg_frq'].wizard._go_next()
-        interpreter.flush()
-        analysis.peak_intensity.action_relax_disp_exp_type(item=5)
-        uf_store['relax_disp.exp_type'].wizard._go_next()
-        interpreter.flush()
-        analysis.peak_intensity.action_relax_disp_relax_time(item=0)
-        uf_store['relax_disp.relax_time'].wizard._go_next()
-        interpreter.flush()
-        analysis.peak_intensity.action_spectrometer_frq(item=10)
-        uf_store['spectrometer.frequency'].wizard._go_next()
-        interpreter.flush()
+        # FIXME: skipping the checks for certain wxPython bugs.
+        if status.relax_mode != 'gui' and wx.version() != '2.9.4.1 gtk2 
(classic)':
+            analysis.peak_intensity.action_relax_disp_cpmg_frq(item=4)
+            uf_store['relax_disp.cpmg_frq'].wizard._go_next()
+            interpreter.flush()
+            analysis.peak_intensity.action_relax_disp_exp_type(item=5)
+            uf_store['relax_disp.exp_type'].wizard._go_next()
+            interpreter.flush()
+            analysis.peak_intensity.action_relax_disp_relax_time(item=0)
+            uf_store['relax_disp.relax_time'].wizard._go_next()
+            interpreter.flush()
+            analysis.peak_intensity.action_spectrometer_frq(item=10)
+            uf_store['spectrometer.frequency'].wizard._go_next()
+            interpreter.flush()
 
         # Set up the models to use.
         models = [MODEL_R2EFF, MODEL_NOREX, MODEL_LM63, MODEL_CR72, 
MODEL_IT99, MODEL_NS_CPMG_2SITE_EXPANDED]
@@ -471,18 +473,20 @@
         analysis.peak_intensity.on_right_click(Fake_right_click())
 
         # Simulate the popup menu entries to catch bugs there (just apply 
the user functions with the currently set values).
-        analysis.peak_intensity.action_relax_disp_spin_lock_field(item=4)
-        uf_store['relax_disp.spin_lock_field'].wizard._go_next()
-        interpreter.flush()
-        analysis.peak_intensity.action_relax_disp_exp_type(item=5)
-        uf_store['relax_disp.exp_type'].wizard._go_next()
-        interpreter.flush()
-        analysis.peak_intensity.action_relax_disp_relax_time(item=0)
-        uf_store['relax_disp.relax_time'].wizard._go_next()
-        interpreter.flush()
-        analysis.peak_intensity.action_spectrometer_frq(item=10)
-        uf_store['spectrometer.frequency'].wizard._go_next()
-        interpreter.flush()
+        # FIXME: skipping the checks for certain wxPython bugs.
+        if status.relax_mode != 'gui' and wx.version() != '2.9.4.1 gtk2 
(classic)':
+            analysis.peak_intensity.action_relax_disp_spin_lock_field(item=4)
+            uf_store['relax_disp.spin_lock_field'].wizard._go_next()
+            interpreter.flush()
+            analysis.peak_intensity.action_relax_disp_exp_type(item=5)
+            uf_store['relax_disp.exp_type'].wizard._go_next()
+            interpreter.flush()
+            analysis.peak_intensity.action_relax_disp_relax_time(item=0)
+            uf_store['relax_disp.relax_time'].wizard._go_next()
+            interpreter.flush()
+            analysis.peak_intensity.action_spectrometer_frq(item=10)
+            uf_store['spectrometer.frequency'].wizard._go_next()
+            interpreter.flush()
 
         # Deselect all but the 'TP02' model.
         models = [MODEL_R2EFF, MODEL_NOREX, MODEL_TP02]




Related Messages


Powered by MHonArc, Updated Wed Nov 27 17:40:01 2013