[Python-bugs-list] [ python-Bugs-454456 ] int overflow code needs tests

noreply@sourceforge.net noreply@sourceforge.net
Thu, 23 Aug 2001 15:54:22 -0700


Bugs item #454456, was opened at 2001-08-22 21:26
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=454456&group_id=5470

Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Nobody/Anonymous (nobody)
Summary: int overflow code needs tests

Initial Comment:
The code that implements phase A of PEP 237 is now
checked in. It seems to work, but it deserves a test
suite. When I had first coded it, there were quite a
few surprises when I ran it!

I'm looking for a volunteer to create a test that
checks the various boundary cases, different optional
behaviors, etc.

I need to concentrate on type/class unification, so I
won't get to this myself.



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

>Comment By: Tim Peters (tim_one)
Date: 2001-08-23 15:54

Message:
Logged In: YES 
user_id=31435

I added tests to test_long.py that check for auto-long on 
overflowing + - * / ** unary_minus divmod and 3-arg pow.  
That turned up several bugs, but most unrelated to the PEP!

I don't intend to do more on this.  "various boundary 
cases" are pretty well covered now, but "different optional 
behaviors" aren't at all.

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

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