[Python-Dev] cpython (2.7): Issue #11277: test_zlib tests a buffer of 1 GB on 32 bits

Antoine Pitrou solipsis at pitrou.net
Wed May 4 21:35:11 CEST 2011


On Wed, 04 May 2011 21:27:50 +0200
victor.stinner <python-checkins at python.org> wrote:
> http://hg.python.org/cpython/rev/7f3cab59ef3e
> changeset:   69834:7f3cab59ef3e
> branch:      2.7
> parent:      69827:affec521b330
> user:        Victor Stinner <victor.stinner at haypocalc.com>
> date:        Wed May 04 21:27:39 2011 +0200
> summary:
>   Issue #11277: test_zlib tests a buffer of 1 GB on 32 bits

What's the point? The issue with 2GB or 4GB buffers is that they cross
the potential limit of a machine type (a signed or unsigned integer).
I don't see any benefit in testing a 1GB buffer; the test could
probably be removed instead.

Regards

Antoine.




More information about the Python-Dev mailing list