Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r81574:bf5ba4797872
Date: 2016-01-05 12:09 +0100
http://bitbucket.org/pypy/pypy/changeset/bf5ba4797872/

Log:    slightly better test

diff --git a/pypy/objspace/std/test/test_longobject.py 
b/pypy/objspace/std/test/test_longobject.py
--- a/pypy/objspace/std/test/test_longobject.py
+++ b/pypy/objspace/std/test/test_longobject.py
@@ -362,6 +362,6 @@
     def test_linear_long_base_16(self):
         # never finishes if long(_, 16) is not linear-time
         size = 100000
-        n = "5" + "0" * size
-        expected = 5 << (size * 4)
+        n = "a" * size
+        expected = (2 << (size * 4)) // 3
         assert long(n, 16) == expected
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to