diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2018-10-20 11:06:05 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2018-10-20 11:06:05 +0200 |
commit | 680cf5ba999e853926ca8cedc79e73979328a4c3 (patch) | |
tree | 06ef279e781136bd74c1b5feb3de7e83d2d05d2b | |
parent | 4c0e8ccc7ac0af846ff6a038fe6ecf57d59397ed (diff) | |
download | cython-680cf5ba999e853926ca8cedc79e73979328a4c3.tar.gz |
Extend buildenv test to allow estimating the actual PyLong digit size of the CPython runtime.
-rw-r--r-- | tests/compile/buildenv.pyx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/compile/buildenv.pyx b/tests/compile/buildenv.pyx index d38efba1a..6d3653146 100644 --- a/tests/compile/buildenv.pyx +++ b/tests/compile/buildenv.pyx @@ -96,6 +96,7 @@ PyLong_MASK {PyLong_MASK:X} PyLong_SHIFT {PyLong_SHIFT} sizeof(digit) {sizeof(digit)} sizeof(sdigit) {sizeof(sdigit)} +sys.getsize(1, 2**14, 2**15, 2**29, 2**30, 2**63, 2**64) {tuple(sys.getsizeof(n) for n in (1, 2**14, 2**15, 2**29, 2**30, 2**63, 2**64))} SIZEOF_INT {SIZEOF_INT} ({sizeof(int)}) SIZEOF_LONG {SIZEOF_LONG} ({sizeof(long)}) |