This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients pitrou, vstinner
Date 2011-04-04.11:23:38
SpamBayes Score 5.515613e-06
Marked as misclassified No
Message-id <1301916219.73.0.709237127592.issue11760@psf.upfronthosting.co.za>
In-reply-to
Content
test_zlib failure is on zlib.crc32(mmap.mmap(...)) with a mapping bigger than 4 GB:
----------------------
# Issue #10276 - check that inputs >=4GB are handled correctly.
class ChecksumBigBufferTestCase(unittest.TestCase):

    def setUp(self):
        with open(support.TESTFN, "wb+") as f:
            f.seek(_4G)
            f.write(b"asdf")
        with open(support.TESTFN, "rb") as f:
            self.mapping = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)

    def tearDown(self):
        self.mapping.close()
        support.unlink(support.TESTFN)

    @unittest.skipUnless(mmap, "mmap() is not available.")
    @unittest.skipUnless(sys.maxsize > _4G, "Can't run on a 32-bit system.")
    @unittest.skipUnless(support.is_resource_enabled("largefile"),
                         "May use lots of disk space.")
    def test_big_buffer(self):
        self.assertEqual(zlib.crc32(self.mapping), 3058686908) <~~~ HERE
        self.assertEqual(zlib.adler32(self.mapping), 82837919)
----------------------

It looks to be related to #11277 (and #10276).
History
Date User Action Args
2011-04-04 11:23:39vstinnersetrecipients: + vstinner, pitrou
2011-04-04 11:23:39vstinnersetmessageid: <1301916219.73.0.709237127592.issue11760@psf.upfronthosting.co.za>
2011-04-04 11:23:39vstinnerlinkissue11760 messages
2011-04-04 11:23:38vstinnercreate