[pypy-commit] pypy jit-frame-counter: test fix

alex_gaynor noreply at buildbot.pypy.org
Sun Mar 4 04:59:04 CET 2012


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: jit-frame-counter
Changeset: r53171:b205daec6f30
Date: 2012-03-03 22:58 -0500
http://bitbucket.org/pypy/pypy/changeset/b205daec6f30/

Log:	test fix

diff --git a/pypy/jit/tool/test/test_oparser.py b/pypy/jit/tool/test/test_oparser.py
--- a/pypy/jit/tool/test/test_oparser.py
+++ b/pypy/jit/tool/test/test_oparser.py
@@ -152,12 +152,12 @@
         debug_merge_point(0, 0, '(stuff) #1')
         '''
         loop = self.parse(x)
-        assert loop.operations[0].getarg(1)._get_str() == 'info'
-        assert loop.operations[0].getarg(2).getint() == 0
-        assert loop.operations[1].getarg(1)._get_str() == 'info'
-        assert loop.operations[2].getarg(1)._get_str() == "<some ('other.')> info"
-        assert loop.operations[2].getarg(2).getint() == 1
-        assert loop.operations[3].getarg(1)._get_str() == "(stuff) #1"
+        assert loop.operations[0].getarg(2)._get_str() == 'info'
+        assert loop.operations[0].getarg(1).value == 0
+        assert loop.operations[1].getarg(2)._get_str() == 'info'
+        assert loop.operations[2].getarg(2)._get_str() == "<some ('other.')> info"
+        assert loop.operations[2].getarg(1).value == 1
+        assert loop.operations[3].getarg(2)._get_str() == "(stuff) #1"
 
 
     def test_descr_with_obj_print(self):


More information about the pypy-commit mailing list