f = finished[0]
self.failUnless(isinstance(f, Failure))
self.failUnless(f.check(pipeline.PipelineError))
+ self.failUnlessIn("PipelineError", str(f.value))
+ self.failUnlessIn("ValueError", str(f.value))
r = repr(f.value)
self.failUnless("ValueError" in r, r)
f2 = f.value.error
self.error = error
def __repr__(self):
- return "<PipelineError error=(%r)>" % self.error
+ return "<PipelineError error=(%r)>" % (self.error,)
+ def __str__(self):
+ return "<PipelineError error=(%s)>" % (self.error,)
class SingleFileError(Exception):
"""You are not permitted to add a job to a full pipeline."""