[Python-checkins] r50775 - in python/trunk/Lib/test: output/test_ossaudiodev test_ossaudiodev.py
Greg Ward
gward-1337f07a94b43060ff5c1ea922ed93d6 at python.net
Tue Jul 25 04:06:41 CEST 2006
On 7/22/06, greg.ward <python-checkins at python.org> wrote:
> + percent_diff = (abs(elapsed_time - expected_time) / expected_time) * 100
> + #print ("actual running time was %.2f sec (%.1f%% difference)"
> + # % (elapsed_time, percent_diff))
> + assert percent_diff <= 10.0, \
> + ("elapsed time (%.2f sec) > 10%% off of expected time (%.2f sec)"
> + % (elapsed_time, expected_time))
[Neal Norwitz keeps me honest]:
> This assert is a no-op if running with -O.
D'ohh! Good catch. Unfortunately there are several other assert
statements in test_ossaudiodev.py too. What the heck, might as well fix
'em all. Coming soon to a checkin near you.
> Do we really need the old code commented out?
Nope. I'll remove it.
Greg
--
Greg Ward <gward at python.net> http://www.gerg.ca/
I'd rather have a bottle in front of me than have to have a frontal lobotomy.
More information about the Python-checkins
mailing list