* 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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user