mailr16474 - /branches/uf_redesign/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 May 28, 2012 - 13:08:
Author: bugman
Date: Mon May 28 13:08:13 2012
New Revision: 16474

URL: http://svn.gna.org/viewcvs/relax?rev=16474&view=rev
Log:
Fixes for the script_exec() GUI test base method.

This now adds 'pi' to the namespace in which the scripts are executed in.


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

Modified: branches/uf_redesign/test_suite/gui_tests/base_classes.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/test_suite/gui_tests/base_classes.py?rev=16474&r1=16473&r2=16474&view=diff
==============================================================================
--- branches/uf_redesign/test_suite/gui_tests/base_classes.py (original)
+++ branches/uf_redesign/test_suite/gui_tests/base_classes.py Mon May 28 
13:08:13 2012
@@ -170,8 +170,14 @@
         @type script:   str
         """
 
+        # The namespace to pass into the script execution environment.
+        space = locals()
+
+        # Place some objects in the local namespace.
+        space.update({'pi': pi})
+
         # Execute the script.
-        exec_script(script, locals())
+        exec_script(script, space)
 
 
     def setUp(self):




Related Messages


Powered by MHonArc, Updated Mon May 28 13:40:02 2012