Author: Armin Rigo <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to