diff --git a/src/test/python/jpy_array_test.py b/src/test/python/jpy_array_test.py index 8f2ea92b..39bfef29 100644 --- a/src/test/python/jpy_array_test.py +++ b/src/test/python/jpy_array_test.py @@ -4,7 +4,7 @@ import jpyutil -jpyutil.init_jvm(jvm_maxmem='32M', jvm_classpath=['target/test-classes']) +jpyutil.init_jvm(jvm_maxmem='8g', jvm_classpath=['target/test-classes']) import jpy @@ -232,6 +232,12 @@ def test_leak(self): for i in range(1000000): memory_view = memoryview(j_int_array) + def test_size_greater_than_maxint(self): + jarr = jpy.array("int", 2**30) + mv = memoryview(jarr) + self.assertEqual(mv.nbytes, 2**32) + + if __name__ == '__main__': print('\nRunning ' + __file__) unittest.main()