summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2014-03-26 15:12:28 +0900
committerINADA Naoki <inada-n@klab.com>2014-03-26 15:12:28 +0900
commita72e75d7c81486bc2775b957b22d3b5e13742589 (patch)
tree7fbcd7b6236f574ea75f7d7c2c66953d7abf21f2
parent5fb9d8a7fd09893afdd1e5844288313bb347856b (diff)
downloadmsgpack-python-a72e75d7c81486bc2775b957b22d3b5e13742589.tar.gz
Fix PyPy fail.
-rw-r--r--test/test_limits.py54
1 files changed, 28 insertions, 26 deletions
diff --git a/test/test_limits.py b/test/test_limits.py
index 7bc8f4c..da8cd2b 100644
--- a/test/test_limits.py
+++ b/test/test_limits.py
@@ -32,29 +32,31 @@ def test_map_header():
packer.pack_array_header(2**32)
-@pytest.mark.skipif(True, reason="Requires very large memory.")
-def test_binary():
- x = b'x' * (2**32 - 1)
- assert unpackb(packb(x)) == x
- del x
- x = b'x' * (2**32)
- with pytest.raises(ValueError):
- packb(x)
-
-
-@pytest.mark.skipif(True, reason="Requires very large memory.")
-def test_string():
- x = 'x' * (2**32 - 1)
- assert unpackb(packb(x)) == x
- x += 'y'
- with pytest.raises(ValueError):
- packb(x)
-
-
-@pytest.mark.skipif(True, reason="Requires very large memory.")
-def test_array():
- x = [0] * (2**32 - 1)
- assert unpackb(packb(x)) == x
- x.append(0)
- with pytest.raises(ValueError):
- packb(x)
+# PyPy fails following tests because of constant folding?
+# https://bugs.pypy.org/issue1721
+#@pytest.mark.skipif(True, reason="Requires very large memory.")
+#def test_binary():
+# x = b'x' * (2**32 - 1)
+# assert unpackb(packb(x)) == x
+# del x
+# x = b'x' * (2**32)
+# with pytest.raises(ValueError):
+# packb(x)
+#
+#
+#@pytest.mark.skipif(True, reason="Requires very large memory.")
+#def test_string():
+# x = 'x' * (2**32 - 1)
+# assert unpackb(packb(x)) == x
+# x += 'y'
+# with pytest.raises(ValueError):
+# packb(x)
+#
+#
+#@pytest.mark.skipif(True, reason="Requires very large memory.")
+#def test_array():
+# x = [0] * (2**32 - 1)
+# assert unpackb(packb(x)) == x
+# x.append(0)
+# with pytest.raises(ValueError):
+# packb(x)