def do_test_array_protocol(self, type_name, initial, expected): self.do_test_array_protocol2(type_name, initial, expected) self.do_test_array_protocol2(jpy.get_type ...
The first line could be seen as implying that itemsize is undefined if there are no items (and as justifying numbytes/numitems otherwise). The 0 return could be seen as equivalent to a None return ...