Author: Ronan Lamy <[email protected]>
Branch: optimizeopt-cleanup
Changeset: r96466:eebbb92a8dfb
Date: 2019-04-14 00:36 +0100
http://bitbucket.org/pypy/pypy/changeset/eebbb92a8dfb/
Log: remove broken test
diff --git a/rpython/jit/metainterp/test/test_ajit.py
b/rpython/jit/metainterp/test/test_ajit.py
--- a/rpython/jit/metainterp/test/test_ajit.py
+++ b/rpython/jit/metainterp/test/test_ajit.py
@@ -4072,64 +4072,6 @@
class TestLLtype(BaseLLtypeTests, LLJitMixin):
- def test_tagged(self):
- py.test.skip("tagged unsupported")
- from rpython.rlib.objectmodel import UnboxedValue
- class Base(object):
- __slots__ = ()
-
- class Int(UnboxedValue, Base):
- __slots__ = ["a"]
-
- def is_pos(self):
- return self.a > 0
-
- def dec(self):
- try:
- return Int(self.a - 1)
- except OverflowError:
- raise
-
- class Float(Base):
- def __init__(self, a):
- self.a = a
-
- def is_pos(self):
- return self.a > 0
-
- def dec(self):
- return Float(self.a - 1)
-
- driver = JitDriver(greens=['pc', 's'], reds=['o'])
-
- def main(fl, n, s):
- if s:
- s = "--j"
- else:
- s = "---j"
- if fl:
- o = Float(float(n))
- else:
- o = Int(n)
- pc = 0
- while True:
- driver.jit_merge_point(s=s, pc=pc, o=o)
- c = s[pc]
- if c == "j":
- driver.can_enter_jit(s=s, pc=pc, o=o)
- if o.is_pos():
- pc = 0
- continue
- else:
- break
- elif c == "-":
- o = o.dec()
- pc += 1
- return pc
- topt = {'taggedpointers': True}
- res = self.meta_interp(main, [False, 100, True],
- translationoptions=topt)
-
def test_rerased(self):
eraseX, uneraseX = rerased.new_erasing_pair("X")
#
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit