Changeset 441
- Timestamp:
- 21-05-11 13:22:04 (2 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
morituri/common/checksum.py (modified) (1 diff)
-
morituri/common/task.py (modified) (1 diff)
-
morituri/test/test_common_checksum.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r440 r441 1 2011-05-21 Thomas Vander Stichele <thomas at apestaart dot org> 2 3 * morituri/common/checksum.py: 4 Actually raise the exception. 5 * morituri/common/task.py: 6 Document interface more clearly. 7 * morituri/test/test_common_checksum.py: 8 Use tcommon for test.common 9 1 10 2011-05-19 Thomas Vander Stichele <thomas at apestaart dot org> 2 11 -
trunk/morituri/common/checksum.py
r426 r441 75 75 if not self.exception: 76 76 self.paused() 77 else: 78 raise self.exception 77 79 78 80 def getPipelineDesc(self): -
trunk/morituri/common/task.py
r437 r441 74 74 75 75 Subclasses should chain up to me at the beginning. 76 77 Subclass implementations should raise exceptions immediately in 78 case of failure (using set(AndRaise)Exception) first, or do it later 79 using those methods. 80 81 If start doesn't raise an exception, the task should run until 82 complete, or setException and stop(). 76 83 """ 77 84 self.debug('starting') -
trunk/morituri/test/test_common_checksum.py
r426 r441 12 12 from morituri.test import common 13 13 14 from morituri.common import task, checksum, log 14 from morituri.common import task, checksum, log, common 15 from morituri.image import image 15 16 16 from morituri.test import common 17 from morituri.test import common as tcommon 17 18 18 19 def h(i): 19 20 return "0x%08x" % i 20 21 21 class EmptyTestCase( common.TestCase):22 class EmptyTestCase(tcommon.TestCase): 22 23 def testEmpty(self): 23 24 # this test makes sure that checksumming empty files doesn't hang … … 31 32 os.unlink(path) 32 33 33 class PathTestCase( common.TestCase):34 class PathTestCase(tcommon.TestCase): 34 35 def _testSuffix(self, suffix): 35 36 self.runner = task.SyncRunner(verbose=False) … … 41 42 os.unlink(path) 42 43 43 class UnicodePathTestCase(PathTestCase, common.UnicodeTestMixin):44 class UnicodePathTestCase(PathTestCase, tcommon.UnicodeTestMixin): 44 45 def testUnicodePath(self): 45 46 # this test makes sure we can checksum a unicode path
Note: See TracChangeset
for help on using the changeset viewer.
