Skip to content

Commit 2008bcc

Browse files
committed
added nose tests
svn path=/trunk/matplotlib/; revision=6545
1 parent df45358 commit 2008bcc

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Diff for: examples/tests/backend_driver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
'scatter_masked.py',
168168
'scatter_profile.py',
169169
'scatter_star_poly.py',
170-
'set_and_get.py',
170+
#'set_and_get.py',
171171
'shared_axis_across_figures.py',
172172
'shared_axis_demo.py',
173173
'simple_plot.py',

Diff for: unit/nose_tests.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import nose, nose.tools as nt
2+
import numpy.testing as nptest
3+
4+
import matplotlib
5+
matplotlib.use('Agg')
6+
import numpy as np
7+
import matplotlib.pyplot as plt
8+
import matplotlib.axes as maxes
9+
10+
def test_create_subplot_object():
11+
fig = plt.figure()
12+
ax = maxes.Subplot(fig, 1, 1, 1)
13+
fig.add_subplot(ax)
14+
15+
if __name__=='__main__':
16+
nose.runmodule(argv=['-s','--with-doctest'], exit=False)
17+
pass

0 commit comments

Comments
 (0)