This is on cygwin using the gmp provided by the cygwin package manager. I
installed gmpy from sources, not a pre-built package.
Unit tests for gmpy 1.03
on Python 2.5.1 (r251:54863, May 18 2007, 16:56:43)
[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)]
Testing gmpy 1.03 (GMP 4.2.3), default caching (20, 20, -2..11)
gmpy_test_cvr 300 tests, 0 failures
gmpy_test_rnd 26 tests, 0 failures
**********************************************************************
File "/home/somestuff/gmpy/gmpy-1.03/test/gmpy_test_mpf.py", line ?, in
gmpy_test_mpf.__test__.format
Failed example:
_g.mpf(3.4)
Exception raised:
Traceback (most recent call last):
File "/tmp/python.6884/usr/lib/python2.5/doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest gmpy_test_mpf.__test__.format[19]>", line 1, in <module>
_g.mpf(3.4)
ValueError: invalid digits
**********************************************************************
File "/home/somestuff/gmpy/gmpy-1.03/test/gmpy_test_mpf.py", line ?, in
gmpy_test_mpf.__test__.format
Failed example:
print _g.mpf(3.4)
Exception raised:
Traceback (most recent call last):
File "/tmp/python.6884/usr/lib/python2.5/doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest gmpy_test_mpf.__test__.format[20]>", line 1, in <module>
print _g.mpf(3.4)
ValueError: invalid digits
**********************************************************************
File "/home/somestuff/gmpy/gmpy-1.03/test/gmpy_test_mpf.py", line ?, in
gmpy_test_mpf.__test__.format
Failed example:
for i in range(11,99):
assert str(_g.mpf(i/10.0))==str(i/10.0)
Exception raised:
Traceback (most recent call last):
File "/tmp/python.6884/usr/lib/python2.5/doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest gmpy_test_mpf.__test__.format[21]>", line 2, in <module>
assert str(_g.mpf(i/10.0))==str(i/10.0)
ValueError: invalid digits
**********************************************************************
File "/home/somestuff/gmpy/gmpy-1.03/test/gmpy_test_mpf.py", line ?, in
gmpy_test_mpf.__test__.format
Failed example:
_g.fdigits(2.2e5, 0, 6, -10, 10)
Exception raised:
Traceback (most recent call last):
File "/tmp/python.6884/usr/lib/python2.5/doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest gmpy_test_mpf.__test__.format[30]>", line 1, in <module>
_g.fdigits(2.2e5, 0, 6, -10, 10)
TypeError: argument can not be converted to mpf
**********************************************************************
File "/home/somestuff/gmpy/gmpy-1.03/test/gmpy_test_mpf.py", line ?, in
gmpy_test_mpf.__test__.format
Failed example:
_g.digits(_g.mpf(23.45))
Exception raised:
Traceback (most recent call last):
File "/tmp/python.6884/usr/lib/python2.5/doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest gmpy_test_mpf.__test__.format[32]>", line 1, in <module>
_g.digits(_g.mpf(23.45))
ValueError: invalid digits
**********************************************************************
1 items had failures:
5 of 34 in gmpy_test_mpf.__test__.format
***Test Failed*** 5 failures.
gmpy_test_mpf 155 tests, 5 failures
**********************************************************************
1 items had failures:
5 of 34 in gmpy_test_mpf.__test__.format
***Test Failed*** 5 failures.
gmpy_test_mpq 264 tests, 0 failures
**********************************************************************
File "/home/somestuff/gmpy/gmpy-1.03/test/gmpy_test_mpz.py", line ?, in
gmpy_test_mpz.__test__.number
Failed example:
f=_g.mpf(3.3)
Exception raised:
Traceback (most recent call last):
File "/tmp/python.6884/usr/lib/python2.5/doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest gmpy_test_mpz.__test__.number[65]>", line 1, in <module>
f=_g.mpf(3.3)
ValueError: invalid digits
**********************************************************************
File "/home/somestuff/gmpy/gmpy-1.03/test/gmpy_test_mpz.py", line ?, in
gmpy_test_mpz.__test__.number
Failed example:
f.setprec(-1)
Expected:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: n must be >=0
Got:
Traceback (most recent call last):
File "/tmp/python.6884/usr/lib/python2.5/doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest gmpy_test_mpz.__test__.number[66]>", line 1, in <module>
f.setprec(-1)
NameError: name 'f' is not defined
**********************************************************************
2 items had failures:
5 of 34 in gmpy_test_mpf.__test__.format
4 of 144 in gmpy_test_mpz.__test__.number
***Test Failed*** 9 failures.
gmpy_test_mpz 402 tests, 4 failures
**********************************************************************
File "/home/somestuff/gmpy/gmpy-1.03/test/gmpy_test_dec.py", line ?, in
gmpy_test_dec.__test__.elemop
Failed example:
coerce(d, _g.mpf(1.0))
Exception raised:
Traceback (most recent call last):
File "/tmp/python.6884/usr/lib/python2.5/doctest.py", line 1212, in __run
compileflags, 1) in test.globs
File "<doctest gmpy_test_dec.__test__.elemop[14]>", line 1, in <module>
coerce(d, _g.mpf(1.0))
ValueError: invalid digits
**********************************************************************
3 items had failures:
1 of 15 in gmpy_test_dec.__test__.elemop
5 of 34 in gmpy_test_mpf.__test__.format
4 of 144 in gmpy_test_mpz.__test__.number
***Test Failed*** 10 failures.
gmpy_test_dec 16 tests, 1 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
22 tests in gmpy_test_cvr.__test__.infinity
12 tests in gmpy_test_cvr.__test__.misc_stuff
260 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
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
36 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
14 tests in gmpy_test_mpz.__test__.index
12 tests in gmpy_test_mpz.__test__.newdiv
4 tests in gmpy_test_mpz.factorize
1 tests in gmpy_test_rnd
25 tests in gmpy_test_rnd.__test__.rand
**********************************************************************
3 items had failures:
1 of 15 in gmpy_test_dec.__test__.elemop
5 of 34 in gmpy_test_mpf.__test__.format
4 of 144 in gmpy_test_mpz.__test__.number
1163 tests in 39 items.
1153 passed and 10 failed.
***Test Failed*** 10 failures.