Author: bugman
Date: Tue Oct 7 16:44:32 2014
New Revision: 26193
URL: http://svn.gna.org/viewcvs/relax?rev=26193&view=rev
Log:
Fix for the Bmrb.test_bug_22704_corrupted_state_file GUI test.
This was failing because the setUp() method in the inherited Bmrb system test
module was being
overwritten by the default Unittest.setUp() method. Therefore the system test
setUp() method has
been copied into the GUI test class.
Modified:
trunk/test_suite/gui_tests/bmrb.py
Modified: trunk/test_suite/gui_tests/bmrb.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/bmrb.py?rev=26193&r1=26192&r2=26193&view=diff
==============================================================================
--- trunk/test_suite/gui_tests/bmrb.py (original)
+++ trunk/test_suite/gui_tests/bmrb.py Tue Oct 7 16:44:32 2014
@@ -22,7 +22,11 @@
# Module docstring.
"""GUI tests for the BMRB related activities."""
+# Python module imports.
+from tempfile import mkdtemp, mktemp
+
# relax module imports.
+from data_store import Relax_data_store; ds = Relax_data_store()
from test_suite.gui_tests.base_classes import GuiTestCase
from test_suite import system_tests
@@ -35,3 +39,13 @@
# Force execution of the GuiTestCase __init__ method.
GuiTestCase.__init__(self, methodName)
+
+
+ def setUp(self):
+ """Common set up for these GUI tests."""
+
+ # Create a temporary file name.
+ ds.tmpfile = mktemp()
+
+ # Create a temporary directory for dumping files.
+ self.tmpdir = mkdtemp()
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits