From: Paul Brossier Date: Thu, 8 Oct 2009 19:07:23 +0000 (+0200) Subject: tests/python/template.py: also print the command when failing X-Git-Tag: bzr2git~146 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5f4fd2fc728368192069e4e84d2bb8c80ff4cc0e;p=aubio.git tests/python/template.py: also print the command when failing --- diff --git a/tests/python/template.py b/tests/python/template.py index c0b1d126..687189a6 100644 --- a/tests/python/template.py +++ b/tests/python/template.py @@ -32,8 +32,8 @@ class program_test_case(unittest.TestCase): [self.status, self.output] = getstatusoutput(self.command) if expected_status != -1: assert self.status == expected_status, \ - "expected status was %s, got %s\nOutput was:\n%s" % \ - (expected_status, self.status, self.output) + "expected status was %s, got %s\nOutput was:\n%s\n command was %s" % \ + (expected_status, self.status, self.output, self.command) def array_from_text_file(filename, dtype = 'float'): return array([line.split() for line in open(filename).readlines()],