mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Issue #11673: Fix multiprocessing.[Raw]Array constructor to accept a size of type long. Thanks Robert Kern.
This commit is contained in:
parent
d480d93f61
commit
f9e9a6f403
3 changed files with 11 additions and 1 deletions
|
@ -917,6 +917,13 @@ class _TestArray(BaseTestCase):
|
|||
def test_rawarray(self):
|
||||
self.test_array(raw=True)
|
||||
|
||||
@unittest.skipIf(c_int is None, "requires _ctypes")
|
||||
def test_array_accepts_long(self):
|
||||
arr = self.Array('i', 10L)
|
||||
self.assertEqual(len(arr), 10)
|
||||
raw_arr = self.RawArray('i', 10L)
|
||||
self.assertEqual(len(raw_arr), 10)
|
||||
|
||||
@unittest.skipIf(c_int is None, "requires _ctypes")
|
||||
def test_getobj_getlock_obj(self):
|
||||
arr1 = self.Array('i', range(10))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue