Skip to content

Commit 84e2f31

Browse files
committed
Merge pull request #11396 from jreback/warnings3
TST: remove invalid symbol warnings
2 parents 8658da9 + 41f03ee commit 84e2f31

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pandas/io/tests/test_data.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)