change method arg to signature

This commit is contained in:
Craig Macdonald 2020-02-09 20:42:45 +00:00 committed by GitHub
parent cdd653edf5
commit b8c29f635f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class TestConstructor(unittest.TestCase):
outputStream = autoclass('java.lang.System').out
ConstructorTest = autoclass('org.jnius.ConstructorTest')
inst = ConstructorTest(outputStream, param_types="(Ljava/io/OutputStream;)V")
inst = ConstructorTest(outputStream, signature="(Ljava/io/OutputStream;)V")
self.assertEqual(inst.ret, 42)
self.assertTrue(ConstructorTest.getClass().isInstance(inst))