Author: Armin Rigo <[email protected]>
Branch:
Changeset: r74224:c809adae5034
Date: 2014-10-25 16:41 +0200
http://bitbucket.org/pypy/pypy/changeset/c809adae5034/
Log: Oups, this overflows on 32-bit
diff --git a/rpython/translator/c/test/test_newgc.py
b/rpython/translator/c/test/test_newgc.py
--- a/rpython/translator/c/test/test_newgc.py
+++ b/rpython/translator/c/test/test_newgc.py
@@ -1514,7 +1514,7 @@
i = 0
j = 0
k = 0
- while i < 3000000:
+ while i < 400000:
k = (k * 1291 + i) % 4603
a = A()
if k < 1000:
@@ -1546,11 +1546,12 @@
n += ord(a.foo.bar[0])
m += ord(a.foo.bar[1])
return m - n
+ assert f() == 28495
return f
def test_random_pin(self):
res = self.run("random_pin")
- assert res == 279882
+ assert res == 28495
# ____________________________________________________________________
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit