Author: bugman
Date: Mon Oct 15 13:50:51 2012
New Revision: 17804
URL: http://svn.gna.org/viewcvs/relax?rev=17804&view=rev
Log:
Test suite bug fix - the GUI tests now cleanly terminate the interpreter 
thread.
This allows the test suite to terminate normally.  With different Python 
versions on different
operating systems, this could sometimes cause the test suite to freeze at the 
end, the final
printout to be missing, or other strange behaviour.
Modified:
    trunk/test_suite/gui_tests/__init__.py
Modified: trunk/test_suite/gui_tests/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/__init__.py?rev=17804&r1=17803&r2=17804&view=diff
==============================================================================
--- trunk/test_suite/gui_tests/__init__.py (original)
+++ trunk/test_suite/gui_tests/__init__.py Mon Oct 15 13:50:51 2012
@@ -27,6 +27,7 @@
 from unittest import TestSuite
 
 # relax module imports.
+from gui.interpreter import Interpreter
 from relax_errors import RelaxError
 
 # relax GUI test module imports.
@@ -132,5 +133,9 @@
         # Run the test suite.
         results = runner.run(full_suite)
 
+        # Terminate the interpreter thread to allow the tests to cleanly 
exit.
+        interpreter = Interpreter()
+        interpreter.exit()
+
         # Return the status of the tests.
         return results.wasSuccessful()