Python test.test_support._1G Examples

The following are 1 code examples of test.test_support._1G(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module test.test_support , or try the search function .
Example #1
Source File: test_zlib.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def test_big_buffer(self, size):
        data = b"nyan" * (_1G + 1)
        self.assertEqual(zlib.crc32(data) & 0xFFFFFFFF, 1044521549)
        self.assertEqual(zlib.adler32(data) & 0xFFFFFFFF, 2256789997)