mailr9922 - /1.3/test_suite/unit_tests/_specific_fns/test_api.py


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

Header


Content

Posted by edward on November 24, 2009 - 14:52:
Author: bugman
Date: Tue Nov 24 14:52:52 2009
New Revision: 9922

URL: http://svn.gna.org/viewcvs/relax?rev=9922&view=rev
Log:
Fixes for the string printout creation in the __check_method_args() method.


Modified:
    1.3/test_suite/unit_tests/_specific_fns/test_api.py

Modified: 1.3/test_suite/unit_tests/_specific_fns/test_api.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_specific_fns/test_api.py?rev=9922&r1=9921&r2=9922&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_specific_fns/test_api.py (original)
+++ 1.3/test_suite/unit_tests/_specific_fns/test_api.py Tue Nov 24 14:52:52 
2009
@@ -61,17 +61,14 @@
             # The arg.
             text = text + args[i]
 
-        # Shifted index.
-        index = i+1
-
         # Keyword args.
-        for i in xrange(index, len(defaults)+1):
+        for j in xrange(i, len(defaults)+1):
             # Separator.
-            if i != 0:
+            if j != 0:
                 text = text + ', '
 
             # The keyword.
-            text = text + args[i] + '=' + repr(defaults[i-index])
+            text = text + args[j+1] + '=' + repr(defaults[j-i])
 
         # End.
         text = text + ')'
@@ -114,7 +111,7 @@
                 print(doc_base)
 
                 # Fail.
-                self.fail('The args of the method\n\t' + doc + '\ndo not 
match those of the API method\n\t' + doc_base)
+                self.fail('The args of the method:\n\t' + doc + '\ndo not 
match those of the API method:\n\t' + doc_base)
 
 
     def __check_objects(self, analysis_obj):




Related Messages


Powered by MHonArc, Updated Tue Nov 24 15:20:05 2009