File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,15 @@ def test_get_multi1(self):
103
103
@network
104
104
def test_get_multi_invalid (self ):
105
105
sl = ['AAPL' , 'AMZN' , 'INVALID' ]
106
- pan = web .get_data_google (sl , '2012' )
107
- self .assertIn ('INVALID' , pan .minor_axis )
106
+ with tm .assert_produces_warning (SymbolWarning ):
107
+ pan = web .get_data_google (sl , '2012' )
108
+ self .assertIn ('INVALID' , pan .minor_axis )
108
109
109
110
@network
110
111
def test_get_multi_all_invalid (self ):
111
112
sl = ['INVALID' , 'INVALID2' , 'INVALID3' ]
112
- self .assertRaises (RemoteDataError , web .get_data_google , sl , '2012' )
113
+ with tm .assert_produces_warning (SymbolWarning ):
114
+ self .assertRaises (RemoteDataError , web .get_data_google , sl , '2012' )
113
115
114
116
@network
115
117
def test_get_multi2 (self ):
You can’t perform that action at this time.
0 commit comments