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

Skip to content

Commit cd7870d

Browse files
committed
testing: remove duplicate code
svn path=/trunk/matplotlib/; revision=7679
1 parent 252e016 commit cd7870d

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

lib/matplotlib/tests/test_axes.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,7 @@
1313
def test_formatter_ticker():
1414
"""Test Some formatter and ticker issues."""
1515
import matplotlib.testing.jpl_units as units
16-
def register_units():
17-
"""Register the unit conversion classes with matplotlib."""
18-
import matplotlib.units as munits
19-
import matplotlib.testing.jpl_units as jpl_units
20-
from matplotlib.testing.jpl_units.Duration import Duration
21-
from matplotlib.testing.jpl_units.Epoch import Epoch
22-
from matplotlib.testing.jpl_units.UnitDbl import UnitDbl
23-
24-
from matplotlib.testing.jpl_units.StrConverter import StrConverter
25-
from matplotlib.testing.jpl_units.EpochConverter import EpochConverter
26-
from matplotlib.testing.jpl_units.UnitDblConverter import UnitDblConverter
27-
28-
munits.registry[ str ] = StrConverter()
29-
munits.registry[ Epoch ] = EpochConverter()
30-
munits.registry[ UnitDbl ] = UnitDblConverter()
31-
register_units()
16+
units.register()
3217

3318
# This essentially test to see if user specified labels get overwritten
3419
# by the auto labeler functionality of the axes.

0 commit comments

Comments
 (0)