Hello, I am trying to install python2.4.2 on IRIX6.5, but test_fpformat and test_locale failed when I ran "smake test".
The following is the detailed error message: -------------------------------------------------------------------------------------------------------- prompt:\> ./python ./Lib/test/test_fpformat.py test_basic_cases (__main__.FpformatTest) ... ok test_failing_values (__main__.FpformatTest) ... ok test_reasonable_values (__main__.FpformatTest) ... FAIL ====================================================================== FAIL: test_reasonable_values (__main__.FpformatTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "./Lib/test/test_fpformat.py", line 51, in test_reasonable_values self.checkFix(realVal, d) File "./Lib/test/test_fpformat.py", line 28, in checkFix self.assertEquals(result, expected) AssertionError: '-0' != '0' ---------------------------------------------------------------------- Ran 3 tests in 0.005s FAILED (failures=1) Traceback (most recent call last): File "./Lib/test/test_fpformat.py", line 75, in ? test_main() File "./Lib/test/test_fpformat.py", line 71, in test_main run_unittest(FpformatTest) File "/user_data2/jfxiao/local/source/python/python-2.4.2/Python-2.4.2/Lib/test/test_support.py", line 290, in run_unittest run_suite(suite, testclass) File "/user_data2/jfxiao/local/source/python/python-2.4.2/Python-2.4.2/Lib/test/test_support.py", line 275, in run_suite raise TestFailed(err) test.test_support.TestFailed: Traceback (most recent call last): File "./Lib/test/test_fpformat.py", line 51, in test_reasonable_values self.checkFix(realVal, d) File "./Lib/test/test_fpformat.py", line 28, in checkFix self.assertEquals(result, expected) AssertionError: '-0' != '0' prompt:\> ./python ./Lib/test/test_locale.py '%f' % 1024 =? '1,024.000000' ... no '%f' % 1024 == '1024.000000' != '1,024.000000' '%f' % 102 =? '102.000000' ... yes '%f' % -42 =? '-42.000000' ... yes '%+f' % -42 =? '-42.000000' ... yes '%20.f' % -42 =? ' -42' ... yes '%+10.f' % -4200 =? ' -4,200' ... no '%+10.f' % -4200 == ' -4200' != ' -4,200' '%-10.f' % 4200 =? '4,200 ' ... no '%-10.f' % 4200 == '4200 ' != '4,200 ' -------------------------------------------------------------------------------------------------------- Can someone tell me how to fix this ? Thanks in advance. Regrads, xiaojf
-- http://mail.python.org/mailman/listinfo/python-list