mailr27708 - /trunk/test_suite/unit_tests/_lib/_sequence_alignment/test_msa.py


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

Header


Content

Posted by edward on February 20, 2015 - 16:46:
Author: bugman
Date: Fri Feb 20 16:46:14 2015
New Revision: 27708

URL: http://svn.gna.org/viewcvs/relax?rev=27708&view=rev
Log:
Python 3 fix for the Test_msa.test_central_star unit test.

This is from the _lib._sequence_alignment.test_msa unit test module.  The 
logic of range() + range()
does not work in Python 3, so the range function calls are now wrapped in 
list() function calls to
convert to the correct data structure type.


Modified:
    trunk/test_suite/unit_tests/_lib/_sequence_alignment/test_msa.py

Modified: trunk/test_suite/unit_tests/_lib/_sequence_alignment/test_msa.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/unit_tests/_lib/_sequence_alignment/test_msa.py?rev=27708&r1=27707&r2=27708&view=diff
==============================================================================
--- trunk/test_suite/unit_tests/_lib/_sequence_alignment/test_msa.py    
(original)
+++ trunk/test_suite/unit_tests/_lib/_sequence_alignment/test_msa.py    Fri 
Feb 20 16:46:14 2015
@@ -90,11 +90,11 @@
 
         # The gap matrix.
         real_gaps = zeros((3, 34), int16)
-        for i in (range(4) + range(8, 12) + [17] + range(20, 34)):
+        for i in (list(range(4)) + list(range(8, 12)) + [17] + 
list(range(20, 34))):
             real_gaps[0, i] = 1
         for i in range(8, 12):
             real_gaps[1, i] = 1
-        for i in (range(3) + [15, 32, 33]):
+        for i in (list(range(3)) + [15, 32, 33]):
             real_gaps[2, i] = 1
         for i in range(3):
             for j in range(34):




Related Messages


Powered by MHonArc, Updated Fri Feb 20 17:00:03 2015