David Cournapeau wrote:
On Fri, Jan 9, 2009 at 1:37 AM, Christopher Hanley <chanley@stsci.edu> wrote:
Hi,
I've committed the following change to test_print.py to fix one of the tests.
Hi Christopher,
Please do not modify those tests - they are supposed to fail,
David _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
Hi David, Sorry. Should these tests be generating a "known failures" then? ====================================================================== FAIL: test_print.test_locale_single ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/chanley/dev/site-packages/lib/python/nose/case.py", line 182, in runTest self.test(*self.arg) File "/Users/chanley/dev/site-packages/lib/python/numpy/testing/decorators.py", line 82, in skipper return f(*args, **kwargs) File "/Users/chanley/dev/site-packages/lib/python/numpy/core/tests/test_print.py", line 165, in test_locale_single return _test_locale_independance(np.float32) File "/Users/chanley/dev/site-packages/lib/python/numpy/core/tests/test_print.py", line 158, in _test_locale_independance err_msg='Failed locale test for type %s' % tp) File "/Users/chanley/dev/site-packages/lib/python/numpy/testing/utils.py", line 183, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: Failed locale test for type <type 'numpy.float32'> ACTUAL: '1,2' DESIRED: '1.2' ====================================================================== FAIL: test_print.test_locale_double ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/chanley/dev/site-packages/lib/python/nose/case.py", line 182, in runTest self.test(*self.arg) File "/Users/chanley/dev/site-packages/lib/python/numpy/testing/decorators.py", line 82, in skipper return f(*args, **kwargs) File "/Users/chanley/dev/site-packages/lib/python/numpy/core/tests/test_print.py", line 170, in test_locale_double return _test_locale_independance(np.double) File "/Users/chanley/dev/site-packages/lib/python/numpy/core/tests/test_print.py", line 158, in _test_locale_independance err_msg='Failed locale test for type %s' % tp) File "/Users/chanley/dev/site-packages/lib/python/numpy/testing/utils.py", line 183, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: Failed locale test for type <type 'numpy.float64'> ACTUAL: '1,2' DESIRED: '1.2' ====================================================================== FAIL: test_print.test_locale_longdouble ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/chanley/dev/site-packages/lib/python/nose/case.py", line 182, in runTest self.test(*self.arg) File "/Users/chanley/dev/site-packages/lib/python/numpy/testing/decorators.py", line 82, in skipper return f(*args, **kwargs) File "/Users/chanley/dev/site-packages/lib/python/numpy/core/tests/test_print.py", line 175, in test_locale_longdouble return _test_locale_independance(np.longdouble) File "/Users/chanley/dev/site-packages/lib/python/numpy/core/tests/test_print.py", line 158, in _test_locale_independance err_msg='Failed locale test for type %s' % tp) File "/Users/chanley/dev/site-packages/lib/python/numpy/testing/utils.py", line 183, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: Failed locale test for type <type 'numpy.float128'> ACTUAL: '1,2' DESIRED: '1.2' Thanks, Chris -- Christopher Hanley Senior Systems Software Engineer Space Telescope Science Institute 3700 San Martin Drive Baltimore MD, 21218 (410) 338-4338