mailr3626 - /1.3/test_suite/unit_tests/prompt/test_spin.py


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

Header


Content

Posted by edward on November 20, 2007 - 10:45:
Author: bugman
Date: Tue Nov 20 10:45:28 2007
New Revision: 3626

URL: http://svn.gna.org/viewcvs/relax?rev=3626&view=rev
Log:
Set 'sys.ps3' in the prompt.spin unit tests to make them pass when using 
unit_test_runner.py.


Modified:
    1.3/test_suite/unit_tests/prompt/test_spin.py

Modified: 1.3/test_suite/unit_tests/prompt/test_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/prompt/test_spin.py?rev=3626&r1=3625&r2=3626&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/prompt/test_spin.py (original)
+++ 1.3/test_suite/unit_tests/prompt/test_spin.py Tue Nov 20 10:45:28 2007
@@ -22,6 +22,7 @@
 
 # Python module imports.
 from unittest import TestCase
+import sys
 
 # relax module imports.
 from data import Data as relax_data_store
@@ -30,6 +31,9 @@
 from relax_errors import RelaxError, RelaxIntError, RelaxNoPipeError, 
RelaxNoneStrError, RelaxStrError
 from test_suite.unit_tests.spin_testing_base import Spin_base_class
 
+# Set the variable sys.ps3 (this is required by the user functions).
+sys.ps3 = 'relax> '
+
 
 # A class to act as a container.
 class Container:




Related Messages


Powered by MHonArc, Updated Tue Nov 20 11:00:19 2007