[pypy-commit] pypy default: clean up

arigo noreply at buildbot.pypy.org
Fri May 1 18:36:13 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r76968:4ac7ca12f1ba
Date: 2015-05-01 18:36 +0200
http://bitbucket.org/pypy/pypy/changeset/4ac7ca12f1ba/

Log:	clean up

diff --git a/rpython/jit/backend/test/runner_test.py b/rpython/jit/backend/test/runner_test.py
--- a/rpython/jit/backend/test/runner_test.py
+++ b/rpython/jit/backend/test/runner_test.py
@@ -3160,7 +3160,6 @@
         for saveerr in [rffi.RFFI_READSAVED_LASTERROR,
                         rffi.RFFI_READSAVED_LASTERROR | rffi.RFFI_ALT_ERRNO,
                        ]:
-            use_alt_errno = saveerr & rffi.RFFI_ALT_ERRNO
             faildescr = BasicFailDescr(1)
             inputargs = [BoxInt() for i in range(7)]
             i1 = BoxInt()
@@ -3242,7 +3241,6 @@
         for saveerr in [rffi.RFFI_ERR_ALL,
                         rffi.RFFI_ERR_ALL | rffi.RFFI_ALT_ERRNO, 
                        ]:
-            use_alt_errno = saveerr & rffi.RFFI_ALT_ERRNO
             faildescr = BasicFailDescr(1)
             inputargs = [BoxInt() for i in range(7)]
             i1 = BoxInt()
@@ -3258,7 +3256,7 @@
             looptoken = JitCellToken()
             self.cpu.compile_loop(inputargs, ops, looptoken)
             #
-            if use_alt_errno:
+            if saveerr & rffi.RFFI_ALT_ERRNO:
                 llerrno.set_debug_saved_alterrno(self.cpu, 8)
             else:
                 llerrno.set_debug_saved_errno(self.cpu, 8)


More information about the pypy-commit mailing list