http://hg.viff.dk/viff/rev/a1304b0072d4
changeset: 1177:a1304b0072d4
user: Janus Dam Nielsen <[email protected]>
date: Thu May 14 10:47:12 2009 +0200
summary: RuntimeTestCase must wait on the runtime results too.
Otherwise any exceptions raised in the protocol execution wont be
propagated correctly, and Trial might believe that the test case has
succeeded when it hasn't.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
viff/test/util.py | 4 ++--
diffs (15 lines):
diff -r e86a007bddbd -r a1304b0072d4 viff/test/util.py
--- a/viff/test/util.py Thu May 07 11:09:47 2009 +0200
+++ b/viff/test/util.py Thu May 14 10:47:12 2009 +0200
@@ -77,9 +77,9 @@
except AttributeError:
return failure
- result = gatherResults(self.runtimes)
+ result = gatherResults(self.runtimes + self.close_sentinels)
result.addErrback(unpack)
- return gatherResults(self.close_sentinels)
+ return result
wrapper.func_name = method.func_name
return wrapper
_______________________________________________
viff-commits mailing list
[email protected]
http://lists.viff.dk/listinfo.cgi/viff-commits-viff.dk