Author: bugman Date: Sun Nov 18 23:52:05 2007 New Revision: 3603 URL: http://svn.gna.org/viewcvs/relax?rev=3603&view=rev Log: Fixed the unit test of the pipe_from argument of the spin.copy() user function. The valid None and str arguments are being skipped to avoid the assertRaises() method. 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=3603&r1=3602&r2=3603&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/prompt/test_spin.py (original) +++ 1.3/test_suite/unit_tests/prompt/test_spin.py Sun Nov 18 23:52:05 2007 @@ -54,5 +54,9 @@ # Loop over the data types. for data in return_data_types(): + # Catch the None and str arguments, and skip them. + if data[0] == 'None' or data[0] == 'str': + continue + # Copy a spin to a number which already exists. self.assertRaises(RelaxNoneStrError, self.spin_fns.copy, pipe_from=data[1], spin_from='#Old mol:1@111', spin_to='#Old mol:2')