* morituri/common/checksum.py:

Add some debugging.
	* morituri/test/test_image_image.py:
	  Run less verbose.
This commit is contained in:
Thomas Vander Stichele
2009-04-25 10:12:34 +00:00
parent 837005d565
commit 10e5ec0b18
3 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2009-04-25 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/checksum.py:
Add some debugging.
* morituri/test/test_image_image.py:
Run less verbose.
2009-04-25 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/task.py:

View File

@@ -181,8 +181,10 @@ class ChecksumTask(task.Task):
raise
else:
self._checksum = self._checksum % 2 ** 32
self.debug("last offset", self._last.offset)
last = self._last.offset + len(self._last) / 4 - 1
self.debug("last sample:", last)
self.debug("frame end:", self._frameEnd)
self.debug("frame length:", self._frameLength)
self.debug("checksum: %08X" % self._checksum)
self.debug("bytes: %d" % self._bytes)

View File

@@ -17,7 +17,7 @@ class TrackSingleTestCase(unittest.TestCase):
def setUp(self):
self.image = image.Image(os.path.join(os.path.dirname(__file__),
'track-single.cue'))
self.runner = task.SyncRunner()
self.runner = task.SyncRunner(verbose=False)
self.image.setup(self.runner)
def testAccurateRipChecksum(self):