Message4879

Author MrMeanie
Recipients MrMeanie
Date 2009-07-03.15:32:28
SpamBayes Score 1.7729888e-06
Marked as misclassified No
Message-id <1246635149.99.0.570951146301.issue1395@psf.upfronthosting.co.za>
In-reply-to
Content
PyList.indexOf() and PyTuple.indexOf() fail due to not wrapping the
incoming Java object before passing to the indexOf() method of the
underlying container.

tests/java/javatests/ListTest.java contains a test method called
indexOf() to test this method, however, it is not called by testAll();
it is never used.

Please find attached a patch that:

- renames ListTest.indexOf() to ListTest.test_indexOf()
- calls ListTest.test_indexOf() from ListTest.testAll()
- Fixes PyList.indexOf()
- Fixes PyTuple.indexOf()

Passes regression tests.
History
Date User Action Args
2009-07-03 15:32:30MrMeaniesetrecipients: + MrMeanie
2009-07-03 15:32:29MrMeaniesetmessageid: <1246635149.99.0.570951146301.issue1395@psf.upfronthosting.co.za>
2009-07-03 15:32:29MrMeanielinkissue1395 messages
2009-07-03 15:32:29MrMeaniecreate