Author: Lars Wassermann <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to