diff options
author | Segev Finer <segev208@gmail.com> | 2018-05-14 23:54:29 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2018-05-14 23:54:29 (GMT) |
commit | 735abadd5bd91db4a9e6f4311969b0afacca0a1a (patch) | |
tree | fb0c6d325e164adf3d52ac63905552d838fd6e24 /Lib | |
parent | d063b84d9ee435e9ae981c18faccaff5562792c3 (diff) | |
download | cpython-735abadd5bd91db4a9e6f4311969b0afacca0a1a.zip cpython-735abadd5bd91db4a9e6f4311969b0afacca0a1a.tar.gz cpython-735abadd5bd91db4a9e6f4311969b0afacca0a1a.tar.bz2 |
bpo-16865: Support arrays >=2GB in ctypes. (GH-3006)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/ctypes/test/test_arrays.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/ctypes/test/test_arrays.py b/Lib/ctypes/test/test_arrays.py index 4ed566b..6e562cf 100644 --- a/Lib/ctypes/test/test_arrays.py +++ b/Lib/ctypes/test/test_arrays.py @@ -1,4 +1,6 @@ import unittest +from test.support import bigmemtest, _2G +import sys from ctypes import * from ctypes.test import need_symbol @@ -181,5 +183,10 @@ class ArrayTestCase(unittest.TestCase): _type_ = c_int _length_ = 1.87 + @unittest.skipUnless(sys.maxsize > 2**32, 'requires 64bit platform') + @bigmemtest(size=_2G, memuse=1, dry_run=False) + def test_large_array(self, size): + c_char * size + if __name__ == '__main__': unittest.main() |