When elapsed and expected time differ, at least show their two values.
This commit is contained in:
parent
a43cae3a07
commit
e760631421
|
@ -87,7 +87,8 @@ class OSSAudioDevTests(unittest.TestCase):
|
|||
|
||||
percent_diff = (abs(elapsed_time - expected_time) / expected_time) * 100
|
||||
self.failUnless(percent_diff <= 10.0,
|
||||
"elapsed time > 10% off of expected time")
|
||||
"elapsed time (%s) > 10%% off of expected time (%s)" %
|
||||
(elapsed_time, expected))
|
||||
|
||||
def set_parameters(self, dsp):
|
||||
# Two configurations for testing:
|
||||
|
|
Loading…
Reference in New Issue