Martin Panter added the comment:

Okay. For the gzip module, I cannot easily test this myself. Quickly looking at 
other cases, I guess it would look something like this, but I need to spend 
some time understanging the bigmemtest decorator properly:

@unittest.skipIf(sys.maxsize < _4G, "Requires non-32-bit system")
@test.support.bigmemtest(_4G, 1, dry_run=False)
def test_large_read(self, size):
    ...
    data = reader.read(size)  # Should not raise OverflowError
    self.assertEqual(data, b"data")

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25626>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to