Revision: 5902
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5902&view=rev
Author:   jdh2358
Date:     2008-07-27 05:13:23 +0000 (Sun, 27 Jul 2008)

Log Message:
-----------
added missing coverage report to backend driver

Modified Paths:
--------------
    trunk/matplotlib/examples/pylab_examples/barcode_demo.py
    trunk/matplotlib/examples/tests/backend_driver.py

Modified: trunk/matplotlib/examples/pylab_examples/barcode_demo.py
===================================================================
--- trunk/matplotlib/examples/pylab_examples/barcode_demo.py    2008-07-27 
04:48:53 UTC (rev 5901)
+++ trunk/matplotlib/examples/pylab_examples/barcode_demo.py    2008-07-27 
05:13:23 UTC (rev 5902)
@@ -21,6 +21,6 @@
 ax = fig.add_axes([0.3, 0.1, 0.6, 0.1], **axprops)
 ax.imshow(x, **barprops)
 
-fig.savefig('barcode.png', dpi=100)
+#fig.savefig('barcode.png', dpi=100)
 show()
 

Modified: trunk/matplotlib/examples/tests/backend_driver.py
===================================================================
--- trunk/matplotlib/examples/tests/backend_driver.py   2008-07-27 04:48:53 UTC 
(rev 5901)
+++ trunk/matplotlib/examples/tests/backend_driver.py   2008-07-27 05:13:23 UTC 
(rev 5902)
@@ -59,6 +59,7 @@
     'finance_demo.py',
     'fonts_demo_kw.py',
     'hexbin_demo.py',
+    'hexbin_demo2.py',
     'histogram_demo.py',
     'hline_demo.py',
     'image_demo.py',
@@ -139,6 +140,34 @@
 
     ]
 
+# dict from dir to files we know we don't want to test (eg examples
+# not using pyplot, examples requiring user input, animation examples,
+# examples that may only work in certain environs (usetex examples?),
+# examples that generate multiple figures
+
+excluded = {
+    pylab_dir : ['__init__.py', 'toggle_images.py',],
+    units_dir : ['__init__.py', 'date_support.py',],
+}
+
+def report_missing(dir, flist):
+    'report the py files in dir that are not in flist'
+    globstr = os.path.join(dir, '*.py')
+    fnames = glob.glob(globstr)
+
+    pyfiles = set([os.path.split(fullpath)[-1] for fullpath in set(fnames)])
+
+    exclude = set(excluded.get(dir, []))
+    flist = set(flist)
+    missing = list(pyfiles-flist-exclude)
+    missing.sort()
+    print '%s files not tested: %s'%(dir, ', '.join(missing))
+
+
+report_missing(pylab_dir, pylab_files)
+report_missing(api_dir, api_files)
+report_missing(units_dir, units_files)
+
 files = [os.path.join(pylab_dir, fname) for fname in pylab_files] +\
     [os.path.join(api_dir, fname) for fname in api_files] +\
     [os.path.join(units_dir, fname) for fname in units_files]


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to