shithub: aubio

Download patch

ref: 5f4fd2fc728368192069e4e84d2bb8c80ff4cc0e
parent: b45b4ea3754ac5c5e045bf7b2a4dd9f9a70ac5ff
author: Paul Brossier <piem@piem.org>
date: Thu Oct 8 17:07:23 EDT 2009

tests/python/template.py: also print the command when failing

--- a/tests/python/template.py
+++ b/tests/python/template.py
@@ -32,8 +32,8 @@
     [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()],