[pypy-commit] pypy default: (cfbolz, fijal around) kill test belonging to 40f823984bbf
cfbolz
pypy.commits at gmail.com
Mon Feb 22 05:10:08 EST 2016
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch:
Changeset: r82383:d883e5c610d6
Date: 2016-02-22 11:03 +0100
http://bitbucket.org/pypy/pypy/changeset/d883e5c610d6/
Log: (cfbolz, fijal around) kill test belonging to 40f823984bbf
diff --git a/pypy/module/pypyjit/test_pypy_c/test_string.py b/pypy/module/pypyjit/test_pypy_c/test_string.py
--- a/pypy/module/pypyjit/test_pypy_c/test_string.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_string.py
@@ -142,43 +142,6 @@
jump(..., descr=...)
""")
- def test_getattr_promote(self):
- def main(n):
- class A(object):
- def meth_a(self):
- return 1
- def meth_b(self):
- return 2
- a = A()
-
- l = ['a', 'b']
- s = 0
- for i in range(n):
- name = 'meth_' + l[i & 1]
- meth = getattr(a, name) # ID: getattr
- s += meth()
- return s
-
- log = self.run(main, [1000])
- assert log.result == main(1000)
- loops = log.loops_by_filename(self.filepath)
- assert len(loops) == 1
- for loop in loops:
- assert loop.match_by_id('getattr','''
- guard_not_invalidated?
- i32 = strlen(p31)
- i34 = int_add(5, i32)
- p35 = newstr(i34)
- strsetitem(p35, 0, 109)
- strsetitem(p35, 1, 101)
- strsetitem(p35, 2, 116)
- strsetitem(p35, 3, 104)
- strsetitem(p35, 4, 95)
- copystrcontent(p31, p35, 0, 5, i32)
- i49 = call_i(ConstClass(_ll_2_str_eq_nonnull__rpy_stringPtr_rpy_stringPtr), p35, ConstPtr(ptr48), descr=<Calli [48] rr EF=0 OS=28>)
- guard_value(i49, 1, descr=...)
- ''')
-
def test_remove_duplicate_method_calls(self):
def main(n):
lst = []
More information about the pypy-commit
mailing list