[pypy-svn] r16773 - pypy/release/0.7.x/pypy/tool/pytest
hpk at codespeak.net
hpk at codespeak.net
Sat Aug 27 16:37:25 CEST 2005
Author: hpk
Date: Sat Aug 27 16:37:25 2005
New Revision: 16773
Modified:
pypy/release/0.7.x/pypy/tool/pytest/htmlreport.py
Log:
actually show 100% instead of 1%
Modified: pypy/release/0.7.x/pypy/tool/pytest/htmlreport.py
==============================================================================
--- pypy/release/0.7.x/pypy/tool/pytest/htmlreport.py (original)
+++ pypy/release/0.7.x/pypy/tool/pytest/htmlreport.py Sat Aug 27 16:37:25 2005
@@ -54,7 +54,7 @@
if not options:
options=" "
- failureratio = 1.0 - result.ratio_of_passed()
+ failureratio = 100 * (1.0 - result.ratio_of_passed())
return html.tr(
html.td("%.2f%%" % failureratio,
style = "background-color: %s" % (getresultcolor(result),)),
@@ -129,7 +129,7 @@
sum_passed = sum([x.ratio_of_passed() for x in tests])
t.append(row(html.b("core tests compliancy"),
- html.b("%.2f%%" % (sum_passed/sum100,))))
+ html.b("%.2f%%" % (sum_passed/sum100*100,))))
t.append(row("testmodules passed completely", "%.2f%%" % (ok/sum100)))
t.append(row("testmodules (partially) failed", "%.2f%%" % (err/sum100)))
More information about the Pypy-commit
mailing list