[pypy-commit] pypy default: slightly better test

arigo pypy.commits at gmail.com
Tue Jan 5 06:16:18 EST 2016


Author: Armin Rigo <arigo at 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


More information about the pypy-commit mailing list