@@ -32,29 +32,31 @@ def test_map_header():
32
32
packer .pack_array_header (2 ** 32 )
33
33
34
34
35
- @pytest .mark .skipif (True , reason = "Requires very large memory." )
36
- def test_binary ():
37
- x = b'x' * (2 ** 32 - 1 )
38
- assert unpackb (packb (x )) == x
39
- del x
40
- x = b'x' * (2 ** 32 )
41
- with pytest .raises (ValueError ):
42
- packb (x )
43
-
44
-
45
- @pytest .mark .skipif (True , reason = "Requires very large memory." )
46
- def test_string ():
47
- x = 'x' * (2 ** 32 - 1 )
48
- assert unpackb (packb (x )) == x
49
- x += 'y'
50
- with pytest .raises (ValueError ):
51
- packb (x )
52
-
53
-
54
- @pytest .mark .skipif (True , reason = "Requires very large memory." )
55
- def test_array ():
56
- x = [0 ] * (2 ** 32 - 1 )
57
- assert unpackb (packb (x )) == x
58
- x .append (0 )
59
- with pytest .raises (ValueError ):
60
- packb (x )
35
+ # PyPy fails following tests because of constant folding?
36
+ # https://bugs.pypy.org/issue1721
37
+ #@pytest.mark.skipif(True, reason="Requires very large memory.")
38
+ #def test_binary():
39
+ # x = b'x' * (2**32 - 1)
40
+ # assert unpackb(packb(x)) == x
41
+ # del x
42
+ # x = b'x' * (2**32)
43
+ # with pytest.raises(ValueError):
44
+ # packb(x)
45
+ #
46
+ #
47
+ #@pytest.mark.skipif(True, reason="Requires very large memory.")
48
+ #def test_string():
49
+ # x = 'x' * (2**32 - 1)
50
+ # assert unpackb(packb(x)) == x
51
+ # x += 'y'
52
+ # with pytest.raises(ValueError):
53
+ # packb(x)
54
+ #
55
+ #
56
+ #@pytest.mark.skipif(True, reason="Requires very large memory.")
57
+ #def test_array():
58
+ # x = [0] * (2**32 - 1)
59
+ # assert unpackb(packb(x)) == x
60
+ # x.append(0)
61
+ # with pytest.raises(ValueError):
62
+ # packb(x)
0 commit comments