* morituri/common/checksum.py:

Actually raise the exception.
	* morituri/common/task.py:
	  Document interface more clearly.
	* morituri/test/test_common_checksum.py:
	  Use tcommon for test.common
This commit is contained in:
Thomas Vander Stichele
2011-05-21 11:22:04 +00:00
parent 019ad538d8
commit 0da5dd0aa1
4 changed files with 24 additions and 5 deletions

View File

@@ -73,6 +73,13 @@ class Task(object, log.Loggable):
Start the task.
Subclasses should chain up to me at the beginning.
Subclass implementations should raise exceptions immediately in
case of failure (using set(AndRaise)Exception) first, or do it later
using those methods.
If start doesn't raise an exception, the task should run until
complete, or setException and stop().
"""
self.debug('starting')
self.setProgress(self.progress)