Author: Richard Plangger <planri...@gmail.com>
Branch: py3.5
Changeset: r87622:d3fa9d0090d6
Date: 2016-10-08 11:05 +0200
http://bitbucket.org/pypy/pypy/changeset/d3fa9d0090d6/

Log:    change standard lib test to pass the while test file. pypy's buffer
        is bigger

diff --git a/lib-python/3/test/test_zlib.py b/lib-python/3/test/test_zlib.py
--- a/lib-python/3/test/test_zlib.py
+++ b/lib-python/3/test/test_zlib.py
@@ -386,6 +386,8 @@
         # Sizes up to sys.maxsize should be accepted, although zlib is
         # internally limited to expressing sizes with unsigned int
         data = HAMLET_SCENE * 10
+        if len(data) < zlib.DEF_BUF_SIZE:
+            data = HAMLET_SCENE * 20
         self.assertGreater(len(data), zlib.DEF_BUF_SIZE)
         compressed = zlib.compress(data, 1)
         dco = zlib.decompressobj()
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to