[wwwsearch-commits] r32803 - wwwsearch/mechanize/trunk

jjlee at codespeak.net jjlee at codespeak.net
Sun Oct 1 20:49:05 CEST 2006


Author: jjlee
Date: Sun Oct  1 20:49:04 2006
New Revision: 32803

Modified:
   wwwsearch/mechanize/trunk/test.py
Log:
Comment out HTML coverage report to remove dependency on colorize.py, so can report bug to coverage.py maintainer

Modified: wwwsearch/mechanize/trunk/test.py
==============================================================================
--- wwwsearch/mechanize/trunk/test.py	(original)
+++ wwwsearch/mechanize/trunk/test.py	Sun Oct  1 20:49:04 2006
@@ -178,16 +178,16 @@
 
     if run_coverage:
         # HTML coverage report
-        import colorize
+##         import colorize
         from mechanize import _mechanize
-        try:
-            os.mkdir("coverage")
-        except OSError:
-            pass
-        f, s, m, mf = coverage.analysis(_mechanize)
-        fo = open(os.path.join('coverage', os.path.basename(f)+'.html'), 'wb')
-        colorize.colorize_file(f, outstream=fo, not_covered=mf)
-        fo.close()
+##         try:
+##             os.mkdir("coverage")
+##         except OSError:
+##             pass
+##         f, s, m, mf = coverage.analysis(_mechanize)
+##         fo = open(os.path.join('coverage', os.path.basename(f)+'.html'), 'wb')
+##         colorize.colorize_file(f, outstream=fo, not_covered=mf)
+##         fo.close()
         coverage.report(_mechanize)
         #print coverage.analysis(_mechanize)
 


More information about the wwwsearch-commits mailing list