[Python-bugs-list] [ python-Bugs-528438 ] test_math should run test_exceptions

noreply@sourceforge.net noreply@sourceforge.net
Tue, 12 Mar 2002 12:19:20 -0800


Bugs item #528438, was opened at 2002-03-11 05:40
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=528438&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Hudson (mwh)
>Assigned to: Michael Hudson (mwh)
Summary: test_math should run test_exceptions

Initial Comment:
Currently test_math runs test of overflow/underflow
behaviour only in verbose mode because it was such a
crapshoot as to whether it worked or not.

As it is hoped that the odds have been improved, it
should probably run it unconditionally (at least until
it turns out that in fact it still doesn't work
everywhere).

It should perhaps be expanded to include tests of **
behaviour (unless that's tested somewhere else).

----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2002-03-12 15:19

Message:
Logged In: YES 
user_id=31435

Back to you!  Python still doesn't promise anything here, 
and I've got no interest in wading thru reports from 100 
Platforms from Mars.  That's why these tests aren't run by 
default.  You can enable them if you like (and I agree it 
would be interesting), but unless someone in Python 
development is dead serious about supporting this stuff 
(I'm not and can't be), the platform-specific failures that 
pop up will just irritate all involved.

Ensuring that 1e-200**2 doesn't overflow would be a fine 
addition to the std runs-all-the-time test -- except you 
can't know whether 1e-200 is in range for the platform's 
notion of C double, or whether 1e-200**2 is out of range 
(although both are very likely today).

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=528438&group_id=5470