Hi Troels,
I have been running the
devel_scripts/python_multiversion_test_suite.py script on a virtual
machine with a 32-bit Linux test system (Mageia 4) and have noticed
that some of your unit tests fail. For Python 2.5, 2.6, 2.7, and 3.1
the tests pass, but on Python 3.2 and 3.3 they fail. This is for
relax 3.1.6 which I have almost finished releasing. The error
messages from the test suite are below. I'm not sure exactly what the
problem is, but you might need to consider changing the string
formatting "%s_%s" to use float formatting ".3f" (here 3 mean 3
decimal places, so you'd need to change it to suit).
Cheers,
Edward
P. S. The messages I see are:
==============
= Unit tests =
==============
.....................................................................EE...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_count_relax_times_r1rho
(test_suite.unit_tests._specific_analyses._relax_disp.test_disp_data.Test_disp_data)
Unit test of the count_relax_times() function.
----------------------------------------------------------------------
Opening the file
'/data/relax/relax-trunk/test_suite/shared_data/dispersion/bug_21344_trunc.bz2'
for reading.
Checking the number of time counts.
13_500_46_40 R1rho 799777399.1 124.24703146206046 1341.11 5
Traceback (most recent call last):
File
"/data/relax/relax-trunk/test_suite/unit_tests/_specific_analyses/_relax_disp/test_disp_data.py",
line 196, in test_count_relax_times_r1rho
self.assertEqual(count, time_comp['%s_%s'%(offset, point)])
KeyError: '124.24703146206046_1341.11'
======================================================================
ERROR: test_find_intensity_keys_r1rho
(test_suite.unit_tests._specific_analyses._relax_disp.test_disp_data.Test_disp_data)
Unit test of the find_intensity_keys() function.
----------------------------------------------------------------------
Opening the file
'/data/relax/relax-trunk/test_suite/shared_data/dispersion/bug_21344_trunc.bz2'
for reading.
Checking the id return experiment.
Traceback (most recent call last):
File
"/data/relax/relax-trunk/test_suite/unit_tests/_specific_analyses/_relax_disp/test_disp_data.py",
line 293, in test_find_intensity_keys_r1rho
print(exp_type, frq, offset, point, time, data["%s_%s_%s"%(offset,
point, time)][5], id, ids)
KeyError: '124.24703146206046_1341.11_0.0'
----------------------------------------------------------------------
Ran 1286 tests in 10.743s
FAILED (errors=2)