[Patches] [ python-Patches-494871 ] test exceptions in various types/methods

noreply@sourceforge.net noreply@sourceforge.net
Fri, 28 Dec 2001 15:27:26 -0800


Patches item #494871, was opened at 2001-12-18 18:16
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=494871&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Neal Norwitz (nnorwitz)
Assigned to: Nobody/Anonymous (nobody)
Summary: test exceptions in various types/methods

Initial Comment:
Add a bunch of tests for various methods, including
numeric stuff like:

float('')
float('5\0')
5.0 / 0.0
5.0 // 0.0
5.0 % 0.0
5 << -5

sequence stuff like:
()[0]
x += ()
[].pop()
[].extend(None)

{}.values()
{}.items()

not sure if buffer stuff should go here.
if so, need to update X.X.X to be a real number,
not sure if there is any correlation of the numbers
or should the next available be used (6.7)


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

>Comment By: Neal Norwitz (nnorwitz)
Date: 2001-12-28 15:27

Message:
Logged In: YES 
user_id=33168

I didn't see buffers mentioned in section 2.2 at all.  
The buffer() function is mentioned in 2.1.

Perhaps the buffer tests should be moved into a test
of their own?  There appear to be very few uses
of buffer throughout the tests.  Also, I saw in
test_StringIO.py that jython doesn't have buffers,
so the whole test should be skipped/pass for jython
it seems (see lines 79-80).

Other than the buffer change in the patch, the other tests
should be in the appropriate location.

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

Comment By: Martin v. Löwis (loewis)
Date: 2001-12-28 14:19

Message:
Logged In: YES 
user_id=21627

The numbers are the section numbers of the documentation, of
what is now section 2.2 (dunno in what release and document
this was section 6). I also don't know how useful it is to
keep the numbering, however, if you easily can, please
re-organize your tests to fit into the most appropriate
sections. Optionally, you
a) may want to check that the things you are testing are
really mentioned in the section, and
b) may want to update the tests to the current section numbers.

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

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