Message2429

Author johahn
Recipients
Date 2005-02-28.11:25:17
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=887415

Did you mean a bugtest? Anyway, here is one.
If you really meant a unittest please point me to the correct 
directory to implement it as I didn't found a suitable one 
(python/Lib/bugs ?).

<code>
"""
test for patch [ 1153003 ]
"""

import support
import jarray
import java
from org.python.core import ArgParser, PyObject

try:
    # test(1, arg1=2)
    args = jarray.array([1,2], PyObject)
    kwds = jarray.array(['arg1'], java.lang.String)
    ArgParser('test', args, kwds, 'arg1', 'arg2')
except TypeError:
    pass
else:
    raise support.TestError('Should raise a TypeError')

</code>
History
Date User Action Args
2008-02-20 17:18:27adminlinkissue1153003 messages
2008-02-20 17:18:27admincreate