summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_range.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #21741: Update 147 test modules to use test discovery.Zachary Ware2015-04-131-4/+1
| | | | | | | I have compared output between pre- and post-patch runs of these tests to make sure there's nothing missing and nothing broken, on both Windows and Linux. The only differences I found were actually tests that were previously *not* run.
* Issue #22777: Test pickling with all protocols.Serhiy Storchaka2014-12-151-22/+24
|
* Make the various iterators' "setstate" sliently and consistently clip theKristján Valur Jónsson2014-03-051-0/+12
|\ | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state.
| * Make the various iterators' "setstate" sliently and consistently clip theKristján Valur Jónsson2014-03-051-0/+12
| | | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state.
* | Merge with 3.3Kristján Valur Jónsson2014-03-041-0/+12
|\ \ | |/
| * Fix pickling of rangeiter. rangeiter_setstate would not allow setting itKristján Valur Jónsson2014-03-041-0/+12
| | | | | | | | to the exhausted state.
* | Fix writing out 64-bit size fields on 32-bit buildsAntoine Pitrou2013-11-231-3/+4
| |
* | Issue #16402: Merge fix from 3.3Mark Dickinson2012-11-041-0/+9
|\ \ | |/
| * Issue #16402: Merge fix from 3.2Mark Dickinson2012-11-041-0/+9
| |\ |/ /
| * Issue #16402: In range slicing, fix shadowing of exceptions from __index__ ↵Mark Dickinson2012-11-041-0/+9
| | | | | | | | method.
* | Issue #14288: Serialization support for builtin iterators.Kristján Valur Jónsson2012-04-031-1/+23
| |
* | add introspection to range objects (closes #9896)Benjamin Peterson2011-11-051-0/+29
| | | | | | | | Patch by Daniel Urban.
* | Issue #13201: equality for range objects is now based on equality of the ↵Mark Dickinson2011-10-231-0/+52
|/ | | | underlying sequences. Thanks Sven Marnach for the patch.
* #11845: Fix typo in rangeobject.c that caused a crash in ↵Ezio Melotti2011-04-151-0/+9
| | | | compute_slice_indices. Patch by Daniel Urban.
* Issue 10889: Support slicing and indexing of large ranges (no docs changes, ↵Nick Coghlan2011-01-121-7/+86
| | | | since, as far as I know, we never said anywhere that this *didn't* work)
* Issue 2690: Add support for slicing and negative indices to range objects ↵Nick Coghlan2010-12-031-1/+72
| | | | | | (includes precalculation and storage of the range length). Refer to the tracker issue for the language moratorium implications of this change
* fix two broken testsBenjamin Peterson2010-11-201-1/+2
|
* merge all range tests into test_rangeBenjamin Peterson2010-11-201-0/+157
|
* #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-2/+2
|
* use assert[Not]In where appropriateEzio Melotti2010-01-231-12/+12
|
* use assert[Not]In where appropriateBenjamin Peterson2010-01-191-20/+20
| | | | A patch from Dave Malcolm.
* remove 2.x specific warningsBenjamin Peterson2009-11-161-4/+0
|
* Issue #7298: Fix a variety of problems leading to wrong results withMark Dickinson2009-11-151-0/+61
| | | | | | | the fast versions of range.__reversed__ and range iteration. Also fix wrong results and a refleak for PyLong version of range.__reversed__. Thanks Eric Smith for reviewing, and for suggesting improved tests.
* Issue #1766304: The range.__contains__ optimization should only beMark Dickinson2009-09-241-0/+6
| | | | applied to ints, not to instances of subclasses of int.
* Issue #1766304: Optimize membership testing for ranges: 'n in range(...)'Mark Dickinson2009-09-221-0/+50
| | | | | does an O(1) check, if n is an integer. Non-integers aren't affected. Thanks Robert Lehmann.
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-6/+6
|
* Fix SystemError and a wasps nest of ref counting issues.Raymond Hettinger2009-06-121-0/+7
|
* Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL.Hirokazu Yamamoto2008-10-231-1/+1
| | | | Reviewed by Benjamin Peterson.
* Issue 2582: Fix pickling of range objects.Alexandre Vassalotti2008-06-101-0/+10
|
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-2/+2
|
* Removed PyInt_GetMax and sys.maxintChristian Heimes2007-12-041-3/+3
| | | | | I replaced sys.maxint with sys.maxsize in Lib/*.py. Does anybody see a problem with the change on Win 64bit platforms? Win 64's long is just 32bit but the sys.maxsize is now 2**63-1 on every 64bit platform. Also added docs for sys.maxsize.
* Update name of test.Walter Dörwald2007-05-211-1/+1
|
* Rename test_xrange.py to test_range.py and fix theWalter Dörwald2007-05-211-0/+68
type name in various spots.