
gmpy - issue #4
Gmp testsuite causes interpreter floating point error on Mac OS X Leopard
What steps will reproduce the problem?
- svn checkout http://gmpy.googlecode.com/svn/trunk/ gmpy
- python gmpy/test/gmpy_test_mpf.py
I would expect something ending with 'Test passed' (hopefully) or a report of failed tests.
Instead the python interpreter badly fails because of a floating point exception in the interpreter.
% python gmpy/test/gmpy_test_mpf.py Unit tests for gmpy 1.02 release candidate (mpf functionality) running on Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) [GCC 4.0.1 (Apple Inc. build 5465)]
Testing gmpy 1.02 (GMP 4.2.2) with default caching (20, 20, -2..11) [1] 9923 floating point exception python gmpy/test/gmpy_test_mpf.py
Then it appears the usual OS window informing that process Python has crashed and asking whether I want to inform apple.
I'm using
Mac OS X Leopard 10.5.2 Darwin Kernel Version 9.2.2: Tue Mar 4 21:17:34 PST 2008; root:xnu- 1228.4.31~1/RELEASE_I386 i386
Default Python 2.5 % python --version Python 2.5.1
gmp 4.2.2 (make checked and working)
gmpy 1.02 RC
The rest of gmpy works (passes all the test excepted the one on mpf).
Comment #1
Posted on Jun 23, 2008 by Grumpy WombatI think this bug is fixed in gmpy 1.03. Can you verify?
Thanks,
casevh
Comment #2
Posted on Jun 24, 2008 by Quick DogFixed in 1.03 as per casevh's observations.
Status: Fixed
Labels:
Type-Defect
Priority-Medium