[pypy-commit] pypy py3.5: fix test

arigo pypy.commits at gmail.com
Wed Nov 30 09:23:23 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r88764:eb1deae2805b
Date: 2016-11-30 15:05 +0100
http://bitbucket.org/pypy/pypy/changeset/eb1deae2805b/

Log:	fix test

diff --git a/pypy/module/pypyjit/test_pypy_c/test_struct.py b/pypy/module/pypyjit/test_pypy_c/test_struct.py
--- a/pypy/module/pypyjit/test_pypy_c/test_struct.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_struct.py
@@ -21,7 +21,7 @@
             while i < n:
                 buf = struct.pack("<i", i)       # ID: pack
                 x = struct.unpack("<i", buf)[0]  # ID: unpack
-                i += x / i
+                i += x // i
             return i
 
         log = self.run(main, [1000])
@@ -82,7 +82,7 @@
             while i < n:
                 buf = s.pack(-1, i)     # ID: pack
                 x = s.unpack(buf)[1]    # ID: unpack
-                i += x / i
+                i += x // i
             return i
 
         log = self.run(main, [1000])


More information about the pypy-commit mailing list