Skip to content

Commit 695da47

Browse files
committed
more import cleanup
1 parent 55673e0 commit 695da47

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

probscale/tests/test_formatters.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
import sys
2-
PYTHON27 = sys.version_info.major == 2
1+
import numpy
32

4-
import numpy as np
5-
import matplotlib.pyplot as plt
6-
from scipy import stats
7-
8-
from matplotlib.testing.decorators import image_comparison, cleanup
93
import nose.tools as nt
104
import numpy.testing as nptest
115

@@ -24,8 +18,8 @@ def test_string(self):
2418
nt.assert_equal(self.fmt._sig_figs('1.23', 3), '1.23')
2519

2620
def test_na_inf(self):
27-
nt.assert_equal(self.fmt._sig_figs(np.nan, 3), 'NA')
28-
nt.assert_equal(self.fmt._sig_figs(np.inf, 3), 'NA')
21+
nt.assert_equal(self.fmt._sig_figs(numpy.nan, 3), 'NA')
22+
nt.assert_equal(self.fmt._sig_figs(numpy.inf, 3), 'NA')
2923

3024
def test_zero(self):
3125
nt.assert_equal(self.fmt._sig_figs(0, 3), '0')

0 commit comments

Comments
 (0)