[pypy-commit] pypy py3k: Skip test_bad_data(). See comment for details.

mjacob pypy.commits at gmail.com
Fri Feb 26 18:18:39 EST 2016


Author: Manuel Jacob <me at manueljacob.de>
Branch: py3k
Changeset: r82577:cb3ee53b1885
Date: 2016-02-26 23:52 +0100
http://bitbucket.org/pypy/pypy/changeset/cb3ee53b1885/

Log:	Skip test_bad_data(). See comment for details.

diff --git a/pypy/module/marshal/test/test_marshal.py b/pypy/module/marshal/test/test_marshal.py
--- a/pypy/module/marshal/test/test_marshal.py
+++ b/pypy/module/marshal/test/test_marshal.py
@@ -200,6 +200,12 @@
         assert str(exc.value) == "bad marshal data (unknown type code)"
 
     def test_bad_data(self):
+        # If you have sufficiently little memory, the line at the end of the
+        # test will fail immediately.  If not, the test will consume high
+        # amounts of memory and make your system unstable.  CPython (I tried
+        # 3.3 and 3.5) shows the same behaviour on my computers (4 GB and 12 GB).
+        skip("takes too much memory")
+
         import marshal
         # Yes, there is code that depends on this :-(
         raises(EOFError, marshal.loads, b'<test>')


More information about the pypy-commit mailing list