From 3e412865b63d9a6ef799abcbec8b2d34eb6069c5 Mon Sep 17 00:00:00 2001 From: Michele Simionato Date: Tue, 29 Mar 2011 17:34:30 +0200 Subject: Fixed a serious bug in plac doctests (raising None exceptions) --- plac/plac_ext.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plac/plac_ext.py b/plac/plac_ext.py index b436d06..f58b84f 100644 --- a/plac/plac_ext.py +++ b/plac/plac_ext.py @@ -905,7 +905,8 @@ class Interpreter(object): msg = 'line %d: input: %s\noutput: %s\nexpected: %s\n' % ( no + 1, input, task, output) write(msg) - raise task.etype, task.exc, task.tb + if task.exc: + raise task.etype, task.exc, task.tb def execute(self, lineiter, verbose=False): "Execute a lineiter of commands in a context and print the output" -- cgit v1.2.1