Author: Alex Gaynor <[email protected]>
Branch: result-in-resops
Changeset: r58508:0e131b57a8eb
Date: 2012-10-27 09:53 -0700
http://bitbucket.org/pypy/pypy/changeset/0e131b57a8eb/
Log: small cleanup
diff --git a/pypy/jit/metainterp/optimizeopt/test/test_optimizebasic.py
b/pypy/jit/metainterp/optimizeopt/test/test_optimizebasic.py
--- a/pypy/jit/metainterp/optimizeopt/test/test_optimizebasic.py
+++ b/pypy/jit/metainterp/optimizeopt/test/test_optimizebasic.py
@@ -1,4 +1,7 @@
+import random
+
import py
+
from pypy.rlib.objectmodel import instantiate
from pypy.jit.metainterp.optimizeopt.test.test_util import (
LLtypeMixin, BaseTest, FakeMetaInterpStaticData,
convert_old_style_to_targets)
@@ -13,6 +16,7 @@
from pypy.jit.metainterp.test.support import boxint
from pypy.rlib.rarithmetic import LONG_BIT
+
def test_store_final_boxes_in_guard():
from pypy.jit.metainterp.resume import tag, TAGBOX
b0 = boxint()
@@ -185,9 +189,9 @@
self.optimize_loop(ops, expected)
def test_constfold_all(self):
- from pypy.jit.metainterp.optimizeopt.test.types import TYPES # xxx
fish
+ from pypy.jit.metainterp.optimizeopt.test.types import TYPES
from pypy.jit.metainterp.executor import execute_nonspec
- import random
+
for opnum in [rop._ALWAYS_PURE_FIRST, rop._ALWAYS_PURE_NO_PTR_LAST]:
try:
op = opname[opnum]
@@ -195,8 +199,6 @@
continue
if op.startswith('_'):
continue
- if 'FLOAT' in op:
- continue
argtypes, restype = TYPES[op.lower()]
args = []
for argtype in argtypes:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit