From 906ca1a4aa604c888c43498a8e7f8aafadb669de Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Sun, 13 Jul 2014 23:00:59 +0100 Subject: [PATCH] Unittest - docstring clarification * Clarify how the alias is supposed to work in case readers are not familiar with what __call__ does. --- test/basetest/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/basetest/task.py b/test/basetest/task.py index 0929814e8..a959c34e1 100644 --- a/test/basetest/task.py +++ b/test/basetest/task.py @@ -59,7 +59,7 @@ class Task(object): return "{0} running from {1}>".format(txt[:-1], self.datadir) def __call__(self, *args, **kwargs): - "Alias to runSuccess" + "aka t = Task() ; t() which is now an alias to t.runSuccess()" return self.runSuccess(*args, **kwargs) def bind_taskd_server(self, taskd):