summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_index.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+0
|
* Fix those parts in the testsuite that assumed that sys.maxint would cause ↵Kristján Valur Jónsson2007-05-031-3/+6
| | | | overflow on x64. Now the testsuite is well behaved on that platform.
* Subclasses of int/long are allowed to define an __index__.Neal Norwitz2006-08-151-8/+9
|
* Whitespace normalization.Tim Peters2006-08-151-2/+2
|
* Fix a couple of bugs exposed by the new __index__ code. The 64-bit buildbotsNeal Norwitz2006-08-121-2/+9
| | | | | | | | | | | were failing due to inappropriate clipping of numbers larger than 2**31 with new-style classes. (typeobject.c) In reviewing the code for classic classes, there were 2 problems. Any negative value return could be returned. Always return -1 if there was an error. Also make the checks similar with the new-style classes. I believe this is correct for 32 and 64 bit boxes, including Windows64. Add a test of classic classes too.
* Patch #1538606, Patch to fix __index__() clipping.Neal Norwitz2006-08-121-48/+126
| | | | | | | I modified this patch some by fixing style, some error checking, and adding XXX comments. This patch requires review and some changes are to be expected. I'm checking in now to get the greatest possible review and establish a baseline for moving forward. I don't want this to hold up release if possible.
* Minor bugs in the __index__ code (PEP 357), with tests.Armin Rigo2006-03-301-95/+73
|
* whitespace normalisationAnthony Baxter2006-03-301-11/+11
|
* Checking in the test for PEP 357.Armin Rigo2006-03-301-0/+159
| | | | | | This is from the SF tracker as well; for some reason the content of test_index.py was lost and an empty file was checked in instead.
* Checking in the code for PEP 357.Guido van Rossum2006-03-071-0/+0
This was mostly written by Travis Oliphant. I've inspected it all; Neal Norwitz and MvL have also looked at it (in an earlier incarnation).