gmpy moving to code.google.com

Daniel Nogradi nogradi at gmail.com
Tue Feb 27 05:59:10 EST 2007


Hi Alex,

I did another test, this time with python 2.4 on suse and things are
worse than in the previous case (which was python 2.5 on fedora 3),
ouput of 'python gmp_test.py' follows:


Unit tests for gmpy 1.02 release candidate
    on Python 2.4 (#1, Mar 22 2005, 21:42:42)
[GCC 3.3.5 20050117 (prerelease) (SUSE Linux)]
Testing gmpy 1.02 (GMP 4.1.3), default caching (20, 20, -2..11)
gmpy_test_cvr 270 tests, 0 failures
gmpy_test_rnd  26 tests, 0 failures
gmpy_test_mpf 155 tests, 0 failures
gmpy_test_mpq 264 tests, 0 failures
gmpy_test_mpz 376 tests, 0 failures
**********************************************************************
File "/home/nogradi/tmp/gmpy/test/gmpy_test_dec.py", line ?, in
gmpy_test_dec.__test__.elemop
Failed example:
    print f+d
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest gmpy_test_dec.__test__.elemop[3]>", line 1, in ?
        print f+d
      File "/usr/lib/python2.4/decimal.py", line 906, in __add__
        other = _convert_other(other)
      File "/usr/lib/python2.4/decimal.py", line 2863, in _convert_other
        raise TypeError, "You can interact Decimal only with int, long
or Decimal data types."
    TypeError: You can interact Decimal only with int, long or Decimal
data types.
**********************************************************************
File "/home/nogradi/tmp/gmpy/test/gmpy_test_dec.py", line ?, in
gmpy_test_dec.__test__.elemop
Failed example:
    print d+f
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest gmpy_test_dec.__test__.elemop[4]>", line 1, in ?
        print d+f
      File "/usr/lib/python2.4/decimal.py", line 906, in __add__
        other = _convert_other(other)
      File "/usr/lib/python2.4/decimal.py", line 2863, in _convert_other
        raise TypeError, "You can interact Decimal only with int, long
or Decimal data types."
    TypeError: You can interact Decimal only with int, long or Decimal
data types.
**********************************************************************
File "/home/nogradi/tmp/gmpy/test/gmpy_test_dec.py", line ?, in
gmpy_test_dec.__test__.elemop
Failed example:
    print q+d
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest gmpy_test_dec.__test__.elemop[5]>", line 1, in ?
        print q+d
      File "/usr/lib/python2.4/decimal.py", line 906, in __add__
        other = _convert_other(other)
      File "/usr/lib/python2.4/decimal.py", line 2863, in _convert_other
        raise TypeError, "You can interact Decimal only with int, long
or Decimal data types."
    TypeError: You can interact Decimal only with int, long or Decimal
data types.
**********************************************************************
File "/home/nogradi/tmp/gmpy/test/gmpy_test_dec.py", line ?, in
gmpy_test_dec.__test__.elemop
Failed example:
    print d+q
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest gmpy_test_dec.__test__.elemop[6]>", line 1, in ?
        print d+q
      File "/usr/lib/python2.4/decimal.py", line 906, in __add__
        other = _convert_other(other)
      File "/usr/lib/python2.4/decimal.py", line 2863, in _convert_other
        raise TypeError, "You can interact Decimal only with int, long
or Decimal data types."
    TypeError: You can interact Decimal only with int, long or Decimal
data types.
**********************************************************************
File "/home/nogradi/tmp/gmpy/test/gmpy_test_dec.py", line ?, in
gmpy_test_dec.__test__.elemop
Failed example:
    print z+d
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest gmpy_test_dec.__test__.elemop[7]>", line 1, in ?
        print z+d
      File "/usr/lib/python2.4/decimal.py", line 906, in __add__
        other = _convert_other(other)
      File "/usr/lib/python2.4/decimal.py", line 2863, in _convert_other
        raise TypeError, "You can interact Decimal only with int, long
or Decimal data types."
    TypeError: You can interact Decimal only with int, long or Decimal
data types.
**********************************************************************
File "/home/nogradi/tmp/gmpy/test/gmpy_test_dec.py", line ?, in
gmpy_test_dec.__test__.elemop
Failed example:
    print d+z
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest gmpy_test_dec.__test__.elemop[8]>", line 1, in ?
        print d+z
      File "/usr/lib/python2.4/decimal.py", line 906, in __add__
        other = _convert_other(other)
      File "/usr/lib/python2.4/decimal.py", line 2863, in _convert_other
        raise TypeError, "You can interact Decimal only with int, long
or Decimal data types."
    TypeError: You can interact Decimal only with int, long or Decimal
data types.
**********************************************************************
1 items had failures:
   6 of  15 in gmpy_test_dec.__test__.elemop
***Test Failed*** 6 failures.
gmpy_test_dec  16 tests, 6 failures
7 items had no tests:
    gmpy_test_cvr._test
    gmpy_test_dec._test
    gmpy_test_mpf._test
    gmpy_test_mpq._test
    gmpy_test_mpz._memsize
    gmpy_test_mpz._test
    gmpy_test_rnd._test
29 items passed all tests:
   6 tests in gmpy_test_cvr
  12 tests in gmpy_test_cvr.__test__.misc_stuff
 252 tests in gmpy_test_cvr.__test__.user_errors
   1 tests in gmpy_test_dec
   1 tests in gmpy_test_mpf
  32 tests in gmpy_test_mpf.__test__.binio
  33 tests in gmpy_test_mpf.__test__.cmpr
  49 tests in gmpy_test_mpf.__test__.elemop
  34 tests in gmpy_test_mpf.__test__.format
   6 tests in gmpy_test_mpf.__test__.newdiv
   2 tests in gmpy_test_mpq
  26 tests in gmpy_test_mpq.__test__.binio
  62 tests in gmpy_test_mpq.__test__.cmpr
  66 tests in gmpy_test_mpq.__test__.elemop
  54 tests in gmpy_test_mpq.__test__.format
  12 tests in gmpy_test_mpq.__test__.newdiv
  18 tests in gmpy_test_mpq.__test__.power
  24 tests in gmpy_test_mpq.__test__.qdiv
   4 tests in gmpy_test_mpz
  34 tests in gmpy_test_mpz.__test__.binio
  62 tests in gmpy_test_mpz.__test__.bitops
  48 tests in gmpy_test_mpz.__test__.cmpr
  42 tests in gmpy_test_mpz.__test__.elemop
  36 tests in gmpy_test_mpz.__test__.format
  12 tests in gmpy_test_mpz.__test__.newdiv
 134 tests in gmpy_test_mpz.__test__.number
   4 tests in gmpy_test_mpz.factorize
   1 tests in gmpy_test_rnd
  25 tests in gmpy_test_rnd.__test__.rand
**********************************************************************
1 items had failures:
   6 of  15 in gmpy_test_dec.__test__.elemop
1107 tests in 37 items.
1101 passed and 6 failed.
***Test Failed*** 6 failures.


HTH,
Daniel



More information about the Python-list mailing list