Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b65d1db

Browse files
committed
testing: remove docstrings on tests, which makes easier discovery of test location
svn path=/trunk/matplotlib/; revision=7701
1 parent 9407dea commit b65d1db

3 files changed

Lines changed: 1 addition & 21 deletions

File tree

lib/matplotlib/tests/test_axes.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
'formatter_ticker_005',
1212
])
1313
def test_formatter_ticker():
14-
"""Test Some formatter and ticker issues."""
1514
import matplotlib.testing.jpl_units as units
1615
units.register()
1716

@@ -61,8 +60,6 @@ def test_basic_annotate():
6160

6261
@image_comparison(baseline_images=['polar_axes'])
6362
def test_polar_annotations():
64-
"""Polar Plot Annotations"""
65-
6663
# you can specify the xypoint and the xytext in different
6764
# positions and coordinate systems, and optionally turn on a
6865
# connecting line and mark the point with a marker. Annotations
@@ -98,8 +95,6 @@ def test_polar_annotations():
9895
#--------------------------------------------------------------------
9996
@image_comparison(baseline_images=['polar_coords'])
10097
def test_polar_coord_annotations():
101-
"""Polar Coordinate Annotations"""
102-
10398
# You can also use polar notation on a catesian axes. Here the
10499
# native coordinate system ('data') is cartesian, so you need to
105100
# specify the xycoords and textcoords as 'polar' if you want to
@@ -130,7 +125,6 @@ def test_polar_coord_annotations():
130125

131126
@image_comparison(baseline_images=['fill_units'])
132127
def test_fill_units():
133-
"""Test the fill method with unitized-data."""
134128
from datetime import datetime
135129
import matplotlib.testing.jpl_units as units
136130
units.register()
@@ -172,7 +166,6 @@ def test_fill_units():
172166

173167
@image_comparison(baseline_images=['single_point'])
174168
def test_single_point():
175-
"""Test single-point plots."""
176169
fig = pylab.figure()
177170
pylab.subplot( 211 )
178171
pylab.plot( [0], [0], 'o' )
@@ -184,8 +177,6 @@ def test_single_point():
184177

185178
@image_comparison(baseline_images=['single_date'])
186179
def test_single_date():
187-
"""Test single-point date plots."""
188-
189180
time1=[ 721964.0 ]
190181
data1=[ -65.54 ]
191182

@@ -200,8 +191,6 @@ def test_single_date():
200191

201192
@image_comparison(baseline_images=['single_date'])
202193
def test_shaped_data():
203-
"""Test numpy shaped data."""
204-
205194
xdata = np.array([[ 0.53295185, 0.23052951, 0.19057629, 0.66724975, 0.96577916,
206195
0.73136095, 0.60823287, 0.017921 , 0.29744742, 0.27164665],
207196
[ 0.2798012 , 0.25814229, 0.02818193, 0.12966456, 0.57446277,
@@ -246,7 +235,6 @@ def test_shaped_data():
246235

247236
@image_comparison(baseline_images=['const_xy'])
248237
def test_const_xy():
249-
"""Test constant xy data."""
250238
fig = pylab.figure()
251239

252240
pylab.subplot( 311 )
@@ -264,8 +252,6 @@ def test_const_xy():
264252
'polar_wrap_360',
265253
])
266254
def test_polar_wrap():
267-
"""Test polar plots where data crosses 0 degrees."""
268-
269255
D2R = np.pi / 180.0
270256

271257
fig = pylab.figure()
@@ -291,7 +277,6 @@ def test_polar_wrap():
291277

292278
@image_comparison(baseline_images=['polar_units'])
293279
def test_polar_units():
294-
"""Test polar plots with unitized data."""
295280
import matplotlib.testing.jpl_units as units
296281
units.register()
297282

@@ -315,7 +300,6 @@ def test_polar_units():
315300

316301
@image_comparison(baseline_images=['axvspan_epoch'])
317302
def test_axvspan_epoch():
318-
"""Test the axvspan method with Epochs."""
319303
from datetime import datetime
320304
import matplotlib.testing.jpl_units as units
321305
units.register()
@@ -337,7 +321,6 @@ def test_axvspan_epoch():
337321

338322
@image_comparison(baseline_images=['axhspan_epoch'])
339323
def test_axhspan_epoch():
340-
"""Test the axhspan method with Epochs."""
341324
from datetime import datetime
342325
import matplotlib.testing.jpl_units as units
343326
units.register()

lib/matplotlib/tests/test_basic.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
from matplotlib.testing.decorators import knownfailureif
33

44
def test_simple():
5-
'''very simple example test'''
65
assert_equal(1+1,2)
76

87
@knownfailureif(True)
9-
def test_simple_fail():
10-
'''very simple example test that should fail'''
8+
def test_simple_knownfail():
119
assert_equal(1+1,3)

lib/matplotlib/tests/test_dates.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ def test_RRuleLocator():
115115

116116
@image_comparison(baseline_images=['DateFormatter_fractionalSeconds'])
117117
def test_DateFormatter():
118-
"""Test DateFormatter"""
119118
import pylab
120119
from datetime import datetime
121120
import matplotlib.testing.jpl_units as units

0 commit comments

Comments
 (0)