mailr5916 - /1.3/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py


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

Header


Content

Posted by edward on April 21, 2008 - 14:33:
Author: bugman
Date: Mon Apr 21 14:33:27 2008
New Revision: 5916

URL: http://svn.gna.org/viewcvs/relax?rev=5916&view=rev
Log:
Fix for the test_atom_loop_spin_selection1() unit test.


Modified:
    1.3/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py

Modified: 1.3/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py?rev=5916&r1=5915&r2=5916&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py 
(original)
+++ 1.3/test_suite/unit_tests/_generic_fns/_structure/test_scientific.py Mon 
Apr 21 14:33:27 2008
@@ -22,7 +22,7 @@
 
 # Python module imports.
 import sys
-from numpy import array
+from numpy import fromstring
 from unittest import TestCase
 
 # relax module imports.
@@ -290,7 +290,7 @@
             self.assertEqual(spin_num, 163)
             self.assertEqual(spin_name, 'OE1')
             self.assertEqual(element, 'O')
-            self.assertEqual(pos, array([10.055, -2.740, -13.193]))
+            self.assertEqual(pos.tostring(), 
'\\\x8f\xc2\xf5(\x1c$@\xecQ\xb8\x1e\x85\xeb\x05\xc0\x89A`\xe5\xd0b*\xc0')
 
             # Increment the atom count.
             atom_count = atom_count + 1




Related Messages


Powered by MHonArc, Updated Mon Apr 21 14:40:10 2008