Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r71132:caee1b15d940
Date: 2014-05-01 14:20 +0200
http://bitbucket.org/pypy/pypy/changeset/caee1b15d940/

Log:    fix the test

diff --git a/pypy/module/pypyjit/test_pypy_c/test_cprofile.py 
b/pypy/module/pypyjit/test_pypy_c/test_cprofile.py
--- a/pypy/module/pypyjit/test_pypy_c/test_cprofile.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_cprofile.py
@@ -19,13 +19,13 @@
         #
         log = self.run(main, [500])
         assert sorted(log.result) == [
-            ("{method 'append' of 'list' objects}", 500),
-            ("{method 'disable' of '_lsprof.Profiler' objects}", 1),
-            ("{method 'pop' of 'list' objects}", 500),
+            ("<method 'append' of 'list' objects>", 500),
+            ("<method 'disable' of '_lsprof.Profiler' objects>", 1),
+            ("<method 'pop' of 'list' objects>", 500),
             ]
         for method in ['append', 'pop']:
             loop, = log.loops_by_id(method)
             print loop.ops_by_id(method)
-            assert 'call(' not in repr(loop.ops_by_id(method))
-            assert 'call_may_force(' not in repr(loop.ops_by_id(method))
-            assert 'call_cond(' in repr(loop.ops_by_id(method))
+            assert ' call(' not in repr(loop.ops_by_id(method))
+            assert ' call_may_force(' not in repr(loop.ops_by_id(method))
+            assert ' cond_call(' in repr(loop.ops_by_id(method))
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to