mailr22255 - in /branches/double_rotor: ./ test_suite/system_tests/state.py


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

Header


Content

Posted by edward on February 24, 2014 - 08:57:
Author: bugman
Date: Mon Feb 24 08:57:51 2014
New Revision: 22255

URL: http://svn.gna.org/viewcvs/relax?rev=22255&view=rev
Log:
Merged revisions 22252,22254 via svnmerge from 
svn+ssh://bugman@xxxxxxxxxxx/svn/relax/trunk

........
  r22252 | bugman | 2014-02-23 22:24:51 +0100 (Sun, 23 Feb 2014) | 6 lines
  
  Created the State.test_bug_21716_no_cdp_state_save system test.
  
  This is for catching bug #21716 (https://gna.org/bugs/?21716), the failure 
to save the relax state
  just after deleting the current data pipe, even if other data pipes exist.
........
  r22254 | bugman | 2014-02-23 22:25:53 +0100 (Sun, 23 Feb 2014) | 3 lines
  
  Docstring fix for the previous commit (r22252).
........

Modified:
    branches/double_rotor/   (props changed)
    branches/double_rotor/test_suite/system_tests/state.py

Propchange: branches/double_rotor/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Feb 24 08:57:51 2014
@@ -1,1 +1,1 @@
-/trunk:1-22251
+/trunk:1-22254

Modified: branches/double_rotor/test_suite/system_tests/state.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/double_rotor/test_suite/system_tests/state.py?rev=22255&r1=22254&r2=22255&view=diff
==============================================================================
--- branches/double_rotor/test_suite/system_tests/state.py (original)
+++ branches/double_rotor/test_suite/system_tests/state.py Mon Feb 24 
08:57:51 2014
@@ -104,6 +104,20 @@
                 i += 1
 
 
+    def test_bug_21716_no_cdp_state_save(self):
+        """Catch U{bug #21716<https://gna.org/bugs/?21716>}, the failure to 
save the relax state when no current data pipe is set."""
+
+        # Create two data pipes.
+        self.interpreter.pipe.create('a', 'mf')
+        self.interpreter.pipe.create('b', 'mf')
+
+        # Delete the current data pipe.
+        self.interpreter.pipe.delete('b')
+
+        # Save the state.
+        self.interpreter.state.save(self.tmpfile, force=True)
+
+
     def test_state_xml(self):
         """Test the saving, loading, and second saving and loading of the 
program state in XML format."""
 




Related Messages


Powered by MHonArc, Updated Mon Feb 24 09:20:02 2014