python2.4.2 test_fpformat and test_locale failed on IRIX6.5

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Xiao Jianfeng

    python2.4.2 test_fpformat and test_locale failed on IRIX6.5

    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.p y
    test_basic_case s (__main__.Fpfor matTest) ... ok
    test_failing_va lues (__main__.Fpfor matTest) ... ok
    test_reasonable _values (__main__.Fpfor matTest) ... FAIL

    =============== =============== =============== =============== ==========
    FAIL: test_reasonable _values (__main__.Fpfor matTest)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
    File "./Lib/test/test_fpformat.p y", line 51, in test_reasonable _values
    self.checkFix(r ealVal, d)
    File "./Lib/test/test_fpformat.p y", line 28, in checkFix
    self.assertEqua ls(result, expected)
    AssertionError: '-0' != '0'

    ----------------------------------------------------------------------
    Ran 3 tests in 0.005s

    FAILED (failures=1)
    Traceback (most recent call last):
    File "./Lib/test/test_fpformat.p y", line 75, in ?
    test_main()
    File "./Lib/test/test_fpformat.p y", line 71, in test_main
    run_unittest(Fp formatTest)
    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_suppo rt.TestFailed: Traceback (most recent call last):
    File "./Lib/test/test_fpformat.p y", line 51, in test_reasonable _values
    self.checkFix(r ealVal, d)
    File "./Lib/test/test_fpformat.p y", line 28, in checkFix
    self.assertEqua ls(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

Working...