Author: guido.van.rossum
Date: Sun Aug 26 22:03:04 2007
New Revision: 57515

Modified:
   python/branches/py3k/Lib/test/test_ossaudiodev.py
Log:
When elapsed and expected time differ, at least show their two values.


Modified: python/branches/py3k/Lib/test/test_ossaudiodev.py
==============================================================================
--- python/branches/py3k/Lib/test/test_ossaudiodev.py   (original)
+++ python/branches/py3k/Lib/test/test_ossaudiodev.py   Sun Aug 26 22:03:04 2007
@@ -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:
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to