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

Skip to content

Commit 6f035b8

Browse files
committed
testing: convert some JPL units tests to simple nose tests
svn path=/trunk/matplotlib/; revision=7668
1 parent c4883c9 commit 6f035b8

5 files changed

Lines changed: 11 additions & 111 deletions

File tree

lib/matplotlib/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,7 @@ def tk_window_focus():
879879
default_test_modules = [
880880
'matplotlib.tests.test_basic',
881881
'matplotlib.tests.test_transforms',
882+
'matplotlib.tests.test_axes',
882883
'matplotlib.tests.test_spines',
883884
]
884885

lib/matplotlib/testing/jpl_units/UnitDblConverter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def axisinfo( unit, axis ):
6666
label information.
6767
"""
6868
# Delay-load due to circular dependencies.
69-
import mplTest.units as U
69+
import matplotlib.testing.jpl_units as U
7070

7171
# Check to see if the value used for units is a string unit value
7272
# or an actual instance of a UnitDbl so that we can use the unit
@@ -105,7 +105,7 @@ def convert( value, unit, axis ):
105105
- Returns the value parameter converted to floats.
106106
"""
107107
# Delay-load due to circular dependencies.
108-
import mplTest.units as U
108+
import matplotlib.testing.jpl_units as U
109109

110110
isNotUnitDbl = True
111111

lib/matplotlib/testing/jpl_units/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
"""
3131

3232
#=======================================================================
33-
from mplTest.units.Duration import Duration
34-
from mplTest.units.Epoch import Epoch
35-
from mplTest.units.UnitDbl import UnitDbl
33+
from Duration import Duration
34+
from Epoch import Epoch
35+
from UnitDbl import UnitDbl
3636

37-
from mplTest.units.StrConverter import StrConverter
38-
from mplTest.units.EpochConverter import EpochConverter
39-
from mplTest.units.UnitDblConverter import UnitDblConverter
37+
from StrConverter import StrConverter
38+
from EpochConverter import EpochConverter
39+
from UnitDblConverter import UnitDblConverter
4040

41-
from mplTest.units.UnitDblFormatter import UnitDblFormatter
41+
from UnitDblFormatter import UnitDblFormatter
4242

4343
#=======================================================================
4444

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
'matplotlib.backends',
5252
'matplotlib.projections',
5353
'matplotlib.testing',
54+
'matplotlib.testing.jpl_units',
5455
'matplotlib.tests',
5556
# 'matplotlib.toolkits',
5657
'mpl_toolkits',

test/test_matplotlib/TestAxes.py

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)