[pypy-commit] lang-smalltalk default: fixed return value printing in targetimageloadingsmalltalk for benchmarks
lwassermann
noreply at buildbot.pypy.org
Thu Mar 7 18:26:12 CET 2013
Author: Lars Wassermann <lars.wassermann at gmail.com>
Branch:
Changeset: r137:68c5b9f0b45b
Date: 2013-03-07 18:19 +0100
http://bitbucket.org/pypy/lang-smalltalk/changeset/68c5b9f0b45b/
Log: fixed return value printing in targetimageloadingsmalltalk for
benchmarks
diff --git a/targetimageloadingsmalltalk.py b/targetimageloadingsmalltalk.py
--- a/targetimageloadingsmalltalk.py
+++ b/targetimageloadingsmalltalk.py
@@ -11,10 +11,12 @@
def _run_benchmark(interp, number, benchmark):
w_object = model.W_SmallInteger(number)
try:
- interp.perform(w_object, benchmark)
+ w_result = interp.perform(w_object, benchmark)
except interpreter.ReturnFromTopLevel, e:
w_result = e.object
+ if w_result:
assert isinstance(w_result, model.W_BytesObject)
+ print '\n'
print w_result.as_string()
return 0
return -1
More information about the pypy-commit
mailing list