* morituri/image/image.py:

Fix AudioLengthTask for the case where we don't have the decoder,
	  by instead of doing get_state, waiting for an ASYNC_DONE or ERROR
	  message.  Properly raise a gst.GError in that case.
	* morituri/common/task.py:
	  Add some debug.
	* morituri/test/test_image_image.py:
	  After this fix, we now catch the TYPE_NOT_FOUND because of an
	  empty stream instead of the later gst.QueryError.
	* morituri/test/test_common_encode.py:
	  Let us know what it is if not a gst.QueryError.
This commit is contained in:
Thomas Vander Stichele
2010-04-05 23:20:40 +00:00
parent f1b97923d9
commit 8ea1dc025d
5 changed files with 46 additions and 5 deletions

View File

@@ -24,7 +24,8 @@ class PathTestCase(common.TestCase):
encode.WavProfile())
e = self.assertRaises(task.TaskException, self.runner.run,
encodetask, verbose=False)
self.failUnless(isinstance(e.exception, gst.QueryError))
self.failUnless(isinstance(e.exception, gst.QueryError),
"%r is not a gst.QueryError" % e.exception)
os.unlink(path)
def testUnicodePath(self):