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):
103103 @network
104104 def test_get_multi_invalid (self ):
105105 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 )
108109
109110 @network
110111 def test_get_multi_all_invalid (self ):
111112 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' )
113115
114116 @network
115117 def test_get_multi2 (self ):
You can’t perform that action at this time.
0 commit comments