From: Alex M. <al...@us...> - 2005-11-06 03:32:16
|
Update of /cvsroot/gmpy/gmpy/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15116/test Modified Files: gmpy_test_mpz.py Log Message: Fixed bug with cmp of different-sign mpz instances Index: gmpy_test_mpz.py =================================================================== RCS file: /cvsroot/gmpy/gmpy/test/gmpy_test_mpz.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** gmpy_test_mpz.py 6 Nov 2005 03:14:41 -0000 1.4 --- gmpy_test_mpz.py 6 Nov 2005 03:32:04 -0000 1.5 *************** *** 141,145 **** >>> _g.mpz(x) mpz(1000000000000L) ! >>> ''' --- 141,147 ---- >>> _g.mpz(x) mpz(1000000000000L) ! >>> try: print cmp(_g.mpz(1), _g.mpz(-1)) ! ... except: print 'ouch!' ! 1 ''' |