Make this test more 32 bit friendly: allocate the most memory that fits into a native integer.

This will avoid triggering an OverflowError on 32 bit platforms but still be more memory than can ever actually be allocated.

Also fix the implementation to accept Python longs as well as Python ints.
2 files changed