slice(int).indices(1L<<100) raise a typeerror of "multiple overloads of indices could match (bigInteger)" in test_slice.py
Executing slice(2).indices(1L<<100) would raise a typeerror of "multiple
overloads of indices could match (bigInteger)" instead of an OverFlowError in
Python2.5.
The testing file is test_slice.py
error output:
FAILED (failures=4, errors=6)
test_cmp ( ** main ** .SliceTest) ... ok
test_constructor ( ** main ** .SliceTest) ... ok
test_hash ( ** main ** .SliceTest) ... ok
test_indices ( ** main ** .SliceTest) ... ERROR
test_members ( ** main ** .SliceTest) ... ok
test_repr ( ** main ** .SliceTest) ... ok
ERROR: test_indices ( ** main ** .SliceTest)
Traceback (most recent call last):
File "test\test_slice.py", line 93, in test_indices
self.assertRaises(OverflowError, slice(None).indices, 1L<<100)
TypeError: multiple overloads of indices could match (BigInteger)
indices(Int32)
indices(Int32)
Work Item Details
Original CodePlex Issue: Issue 23727 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Jul 27, 2009 at 11:44 PM Reported by: dfugate Updated on: Feb 22, 2013 at 2:12 AM Updated by: jdhardy Custom value: Reported internally at Microsoft. Test: test_slice.py CreatedDate: 9/9/2007 NewInternalID: 409519 OldInternalID: 300711 AreaPath: IronPython\Python25