summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xrange.py
Commit message (Collapse)AuthorAgeFilesLines
* Rip out 'long' and 'L'-suffixed integer literals.Guido van Rossum2007-01-151-1/+1
| | | | (Rough first cut.)
* Merge p3yk branch with the trunk up to revision 45595. This breaks a fairThomas Wouters2006-04-211-6/+1
| | | | | | | | | | | | | | | | | | | | number of tests, all because of the codecs/_multibytecodecs issue described here (it's not a Py3K issue, just something Py3K discovers): http://mail.python.org/pipermail/python-dev/2006-April/064051.html Hye-Shik Chang promised to look for a fix, so no need to fix it here. The tests that are expected to break are: test_codecencodings_cn test_codecencodings_hk test_codecencodings_jp test_codecencodings_kr test_codecencodings_tw test_codecs test_multibytecodec This merge fixes an actual test failure (test_weakref) in this branch, though, so I believe merging is the right thing to do anyway.
* Fix xrange tests now that xrange() (like many other places) no longerThomas Wouters2006-04-171-1/+4
| | | | silently converts floats to integers when expecting integer values.
* Get test to pass on amd64 (opteron). This is pretty hacky, butNeal Norwitz2004-10-141-2/+7
| | | | rangeobject.c has an #ifdef that is reached only when LONG_MAX != INT_MAX
* Bug 1003935: xrange overflowsTim Peters2004-08-081-1/+6
| | | | | | | | | | | | | | | Added XXX comment about why the undocumented PyRange_New() API function is too broken to be worth the considerable pain of repairing. Changed range_new() to stop using PyRange_New(). This fixes a variety of bogus errors. Nothing in the core uses PyRange_New() now. Documented that xrange() is intended to be simple and fast, and that CPython restricts its arguments, and length of its result sequence, to native C longs. Added some tests that failed before the patch, and repaired a test that relied on a bogus OverflowError getting raised.
* Exercise xrange a bitNeal Norwitz2004-07-081-0/+59