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):