mailr16348 - /branches/uf_redesign/gui/errors.py


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

Header


Content

Posted by edward on May 18, 2012 - 17:37:
Author: bugman
Date: Fri May 18 17:36:59 2012
New Revision: 16348

URL: http://svn.gna.org/viewcvs/relax?rev=16348&view=rev
Log:
The gui_raise() function now simply re-raises the RelaxError when in test 
mode.

This allows the GUI test to properly fail.


Modified:
    branches/uf_redesign/gui/errors.py

Modified: branches/uf_redesign/gui/errors.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/errors.py?rev=16348&r1=16347&r2=16348&view=diff
==============================================================================
--- branches/uf_redesign/gui/errors.py (original)
+++ branches/uf_redesign/gui/errors.py Fri May 18 17:36:59 2012
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2011 Edward d'Auvergne                                       
 #
+# Copyright (C) 2011-2012 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -41,6 +41,10 @@
     @raises RelaxError:     This raises all RelaxErrors, if the raise flag 
is given.
     """
 
+    # Die if running in test mode.
+    if status.test_mode:
+        raise relax_error
+
     # Turn off the busy cursor if needed.
     if wx.IsBusy():
         wx.EndBusyCursor()




Related Messages


Powered by MHonArc, Updated Fri May 18 17:40:02 2012