diff options
author | Guido van Rossum <guido@python.org> | 2007-08-26 20:03:04 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-26 20:03:04 (GMT) |
commit | e760631421690e09d72847c61a1d2fce539baca8 (patch) | |
tree | baead05fbdd92a86097b0a12d301a62451cc390d /Lib/test/test_ossaudiodev.py | |
parent | a43cae3a0776f5dcbd2a54a0984cdff97e757cae (diff) | |
download | cpython-e760631421690e09d72847c61a1d2fce539baca8.zip cpython-e760631421690e09d72847c61a1d2fce539baca8.tar.gz cpython-e760631421690e09d72847c61a1d2fce539baca8.tar.bz2 |
When elapsed and expected time differ, at least show their two values.
Diffstat (limited to 'Lib/test/test_ossaudiodev.py')
-rw-r--r-- | Lib/test/test_ossaudiodev.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ 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: |