When elapsed and expected time differ, at least show their two values.
diff --git a/Lib/test/test_ossaudiodev.py b/Lib/test/test_ossaudiodev.py
index 0cdc93c..66bc07c 100644
--- a/Lib/test/test_ossaudiodev.py
+++ b/Lib/test/test_ossaudiodev.py
@@ -87,7 +87,8 @@
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: