summaryrefslogtreecommitdiff
path: root/monkey
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-05-07 17:09:28 +0200
committerAleš Smodiš <aless@guru.si>2015-08-11 14:26:03 +0200
commit162bb2c59b9b3faa7a161e192c1821602d2ab326 (patch)
treeaf19b73f55939c60bfeec57352e9a087c79617aa /monkey
parenta101310e4c0b3e07d9f35ef9b28647709ae2960c (diff)
Improve error & warning reporting
Hope it does not break anything.
Diffstat (limited to 'monkey')
-rwxr-xr-xmonkey/monkey.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/monkey/monkey.py b/monkey/monkey.py
index 61ff573..99f5a2a 100755
--- a/monkey/monkey.py
+++ b/monkey/monkey.py
@@ -11,9 +11,8 @@ from .util import PQueue
# Check whether all tests for problem [name] succeed.
def test(name, code):
try:
- reply = prolog.engine.create(
- code=code,
- query='run_tests({})'.format(name))
+ reply, output = prolog.engine.create(
+ code=code, query='run_tests({})'.format(name))
return reply.get('event') == 'success'
except Exception as ex:
return False