[pypy-svn] r28152 - pypy/dist/pypy/tool/pytest

hpk at codespeak.net hpk at codespeak.net
Sat Jun 3 13:18:13 CEST 2006


Author: hpk
Date: Sat Jun  3 13:18:12 2006
New Revision: 28152

Modified:
   pypy/dist/pypy/tool/pytest/htmlreport.py
Log:
complain if no tests could be found 


Modified: pypy/dist/pypy/tool/pytest/htmlreport.py
==============================================================================
--- pypy/dist/pypy/tool/pytest/htmlreport.py	(original)
+++ pypy/dist/pypy/tool/pytest/htmlreport.py	Sat Jun  3 13:18:12 2006
@@ -121,6 +121,8 @@
         err = len([x for x in tests if x.iserror()])
         to = len([x for x in tests if x.istimeout()])
         numtests = ok + err + to
+        assert numtests == len(tests)
+        assert numtests
 
         t = html.table()
         sum100 = numtests / 100.0



More information about the Pypy-commit mailing list