File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 6
6
from distutils .version import LooseVersion as V
7
7
8
8
from nose .tools import assert_raises , assert_equal , assert_true
9
- from nose .tools import assert_sequence_equal
9
+
10
+ try :
11
+ # this is not available in nose + py2.6
12
+ from nose .tools import assert_sequence_equal
13
+ except ImportError :
14
+ assert_sequence_equal = None
10
15
11
16
import numpy as np
12
17
from numpy .testing .utils import assert_array_equal , assert_array_almost_equal
@@ -565,7 +570,8 @@ def test_pandas_iterable():
565
570
import pandas as pd
566
571
except ImportError :
567
572
raise SkipTest ("Pandas not installed" )
568
-
573
+ if assert_sequence_equal is None :
574
+ raise SkipTest ("nose lacks required function" )
569
575
# Using a list or series yields equivalent
570
576
# color maps, i.e the series isn't seen as
571
577
# a single color
You can’t perform that action at this time.
0 commit comments