mailr3649 - /1.3/test_suite/unit_tests/prompt/test_molecule.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 - 11:48:
Author: bugman
Date: Tue Nov 20 11:48:03 2007
New Revision: 3649

URL: http://svn.gna.org/viewcvs/relax?rev=3649&view=rev
Log:
Bug fix for the mol_to arg unit test of the molecule.copy() user function.

The mol_to arg can be None!


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

Modified: 1.3/test_suite/unit_tests/prompt/test_molecule.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/prompt/test_molecule.py?rev=3649&r1=3648&r2=3649&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/prompt/test_molecule.py (original)
+++ 1.3/test_suite/unit_tests/prompt/test_molecule.py Tue Nov 20 11:48:03 2007
@@ -101,12 +101,12 @@
 
         # Loop over the data types.
         for data in return_data_types():
-            # Catch the str arguments, and skip them.
-            if data[0] == 'str':
+            # Catch the None and str arguments, and skip them.
+            if data[0] == 'None' or data[0] == 'str':
                 continue
 
             # The argument test.
-            self.assertRaises(RelaxStrError, self.molecule_fns.copy, 
mol_from='#Old mol', mol_to=data[1])
+            self.assertRaises(RelaxNoneStrError, self.molecule_fns.copy, 
mol_from='#Old mol', mol_to=data[1])
 
 
     def test_create_argfail_mol_name(self):




Related Messages


Powered by MHonArc, Updated Tue Nov 20 12:00:10 2007