File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed
pandas_data_readers/tests Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 99import numpy as np
1010import pandas as pd
1111from pandas import DataFrame , Timestamp
12- from pandas .util .testing import (assert_series_equal , assert_produces_warning ,
13- network , assert_frame_equal )
12+ from pandas .util .testing import (assert_frame_equal , assert_series_equal ,
13+ network )
14+ try :
15+ from pandas .util .testing import assert_produces_warning
16+ except ImportError :
17+ assert_produces_warning = None
18+
1419import pandas .util .testing as tm
1520from numpy .testing import assert_array_equal
1621
@@ -401,6 +406,9 @@ def tearDownClass(cls):
401406
402407 @network
403408 def test_options_source_warning (self ):
409+ if not assert_produces_warning :
410+ raise SkipTest ("old version of pandas without "
411+ "compat.assert_produces_warning" )
404412 with assert_produces_warning ():
405413 aapl = web .Options ('aapl' )
406414
Original file line number Diff line number Diff line change 11import nose
22
33import pandas
4- from pandas .compat import u
54from pandas .util .testing import network
65from pandas .util .testing import assert_frame_equal
76from numpy .testing .decorators import slow
87import pandas .util .testing as tm
98
109from pandas_data_readers .wb import search , download , get_countries
1110
11+ try :
12+ from pandas .compat import u
13+ except ImportError :
14+ try :
15+ unicode # python 2
16+ def u (s ):
17+ return unicode (s , "unicode_escape" )
18+ except NameError :
19+ def u (s ):
20+ return s
21+
1222
1323class TestWB (tm .TestCase ):
1424
You can’t perform that action at this time.
0 commit comments