GeoscienceAustralia / eqrm

Automatically exported from code.google.com/p/eqrm
Other
5 stars 4 forks source link

test_all.py fails on mac #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Execute on a mac
python test_all.py

The above command gives:
Davids-iMac:eqrm davidrobinson$ python test_all.py 

Testing path 
/Users/davidrobinson/Documents/datafiles/workstuff/svn_sandpit/eqrm/eqrm_code/..
:

........................................................................creating

/var/folders/7n/y8xgrw415fqf6y055gwb7_3h0000gn/T/davidrobinson/python27_intermed
iate/compiler_50e9607e64c8ac218e7fd5cbfffcf3c1
............................F...................................................
................................................................................
................................................................................
................................................................................
..........................................................
======================================================================
FAIL: test_write_gmm_data_file 
(test_create_gmm_data_4_nhlib.Test_create_gmm_data_4_nhlib)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/Users/davidrobinson/Documents/datafiles/workstuff/svn_sandpit/eqrm/eqrm_code/test_create_gmm_data_4_nhlib.py", line 48, in test_write_gmm_data_file
   self.assertEqual(row, actual)
AssertionError: Lists differ: ['5', '1.0', 'MEAN', 'AVERAGE_... != ['5', '1.0', 
'MEAN', 'AVERAGE_...

First differing element 4:
22026.465794806718
22026.4657948

 ['5',
  '1.0',
  'MEAN',
  'AVERAGE_HORIZONTAL',
-  '22026.465794806718',
?                -----

+  '22026.4657948',
-  '22026.465794806718',
?                -----

+  '22026.4657948',
-  '22026.465794806718',
?                -----

+  '22026.4657948',
-  '22026.465794806718']
?                -----

+  '22026.4657948']

----------------------------------------------------------------------
Ran 450 tests in 40.702s

FAILED (failures=1)
Davids-iMac:eqrm davidrobinson$ 

Original issue reported on code.google.com by RobinsonDavidJ0@gmail.com on 8 Aug 2012 at 5:04

GoogleCodeExporter commented 9 years ago
Hacky fix, just not running this test for mac.  It isn't core code. Revision 
1221.  

Original comment by duncan.g...@gmail.com on 22 Aug 2012 at 2:08

GoogleCodeExporter commented 9 years ago
still failing.

Original comment by duncan.g...@gmail.com on 27 Aug 2012 at 12:54

GoogleCodeExporter commented 9 years ago
Talked with David about this and we fixed it.

Original comment by duncan.g...@gmail.com on 27 Aug 2012 at 1:09