File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
- import sys
2
- PYTHON27 = sys .version_info .major == 2
1
+ import numpy
3
2
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
9
3
import nose .tools as nt
10
4
import numpy .testing as nptest
11
5
@@ -24,8 +18,8 @@ def test_string(self):
24
18
nt .assert_equal (self .fmt ._sig_figs ('1.23' , 3 ), '1.23' )
25
19
26
20
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' )
29
23
30
24
def test_zero (self ):
31
25
nt .assert_equal (self .fmt ._sig_figs (0 , 3 ), '0' )
You can’t perform that action at this time.
0 commit comments