Is there a test suite for Matplotlib ?

Matplotlib is used as part of the Sage project, where we aim to run test-suites that are part of upstream packages where possible. Someone suggested it would be good if we did that for Matplotlib, which we currently do not do. However, on reading the contents of the source directory (README.txt, INSTALL etc) I could not find any reference to how to test Matplotlib.

Is there such a test suite, and if so how does one invoke it?

Dave

There is a set of nose tests installed in matplotlib.tests. It can be invoked with:

   import matplotlib
   matplotlib.test()

or (from the commandline):

   nosetests matplotlib.tests

Mike

···

On 06/27/2010 08:24 AM, Dr. David Kirkby wrote:

Matplotlib is used as part of the Sage project, where we aim to run test-suites
that are part of upstream packages where possible. Someone suggested it would be
good if we did that for Matplotlib, which we currently do not do. However, on
reading the contents of the source directory (README.txt, INSTALL etc) I could
not find any reference to how to test Matplotlib.

Is there such a test suite, and if so how does one invoke it?

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
   
--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA

There is a set of nose tests installed in matplotlib.tests. It can be
invoked with:

    import matplotlib
    matplotlib.test()

or (from the commandline):

    nosetests matplotlib.tests

Mike

Thank you Mike. We don't have 'nosetests' as a part of Sage, but it should be possible to write a script which just executes the first two lines.

I'll add that to Sage so we can run the matplotlib test suite.

Dave

···

On 06/28/10 01:37 PM, Michael Droettboom wrote:

On 06/27/2010 08:24 AM, Dr. David Kirkby wrote:

Matplotlib is used as part of the Sage project, where we aim to run test-suites
that are part of upstream packages where possible. Someone suggested it would be
good if we did that for Matplotlib, which we currently do not do. However, on
reading the contents of the source directory (README.txt, INSTALL etc) I could
not find any reference to how to test Matplotlib.

Is there such a test suite, and if so how does one invoke it?

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options