From: Geoffrey F. <re...@bu...> - 2009-07-03 15:32:36
|
New submission from Geoffrey French <fro...@go...>: 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. ---------- files: Jython_r6505_indexOf_patch_20090703_v1.patch keywords: patch messages: 4879 nosy: MrMeanie severity: normal status: open title: PyList.indexOf() and PyTuple.indexOf() do not function properly versions: 2.5.0 Added file: http://bugs.jython.org/file697/Jython_r6505_indexOf_patch_20090703_v1.patch _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue1395> _______________________________________ |