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

Skip to content

Commit 0df14b2

Browse files
committed
testing: fixup failing jpl unit test infrastructure
svn path=/trunk/matplotlib/; revision=7671
1 parent 1ac423a commit 0df14b2

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/matplotlib/testing/jpl_units/Duration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def __add__( self, rhs ):
100100
- Returns the sum of ourselves and the input Duration.
101101
"""
102102
# Delay-load due to circular dependencies.
103-
import mplTest.units as U
103+
import matplotlib.testing.jpl_units as U
104104

105105
if isinstance( rhs, U.Epoch ):
106106
return rhs + self

lib/matplotlib/testing/jpl_units/Epoch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def __sub__( self, rhs ):
173173
Epoch that is the result of subtracting a duration from an epoch.
174174
"""
175175
# Delay-load due to circular dependencies.
176-
import mplTest.units as U
176+
import matplotlib.testing.jpl_units as U
177177

178178
# Handle Epoch - Duration
179179
if isinstance( rhs, U.Duration ):

lib/matplotlib/testing/jpl_units/EpochConverter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def float2epoch( value, unit ):
6363
- Returns the value converted to an Epoch in the sepcified time system.
6464
"""
6565
# Delay-load due to circular dependencies.
66-
import mplTest.units as U
66+
import matplotlib.testing.jpl_units as U
6767

6868
secPastRef = value * 86400.0 * U.UnitDbl( 1.0, 'sec' )
6969
return U.Epoch( unit, secPastRef, EpochConverter.jdRef )
@@ -111,7 +111,7 @@ def convert( value, unit, axis ):
111111
- Returns the value parameter converted to floats.
112112
"""
113113
# Delay-load due to circular dependencies.
114-
import mplTest.units as U
114+
import matplotlib.testing.jpl_units as U
115115

116116
isNotEpoch = True
117117
isDuration = False

test/mplTest/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
from mplTest.MplNosePlugin import MplNosePlugin
1111
from mplTest.MplTestCase import MplTestCase
1212

13-
import mplTest.units as units
13+
import matplotlib.testing.jpl_units as units

0 commit comments

Comments
 (0)