From 41f03ee0f717e6714351bbc461666f606cfc76a3 Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Tue, 20 Oct 2015 22:08:47 -0400 Subject: [PATCH] TST: remove invalid symbol warnings --- pandas/io/tests/test_data.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pandas/io/tests/test_data.py b/pandas/io/tests/test_data.py index ad0e05f91d184..29970aef760f2 100644 --- a/pandas/io/tests/test_data.py +++ b/pandas/io/tests/test_data.py @@ -103,13 +103,15 @@ def test_get_multi1(self): @network def test_get_multi_invalid(self): sl = ['AAPL', 'AMZN', 'INVALID'] - pan = web.get_data_google(sl, '2012') - self.assertIn('INVALID', pan.minor_axis) + with tm.assert_produces_warning(SymbolWarning): + pan = web.get_data_google(sl, '2012') + self.assertIn('INVALID', pan.minor_axis) @network def test_get_multi_all_invalid(self): sl = ['INVALID', 'INVALID2', 'INVALID3'] - self.assertRaises(RemoteDataError, web.get_data_google, sl, '2012') + with tm.assert_produces_warning(SymbolWarning): + self.assertRaises(RemoteDataError, web.get_data_google, sl, '2012') @network def test_get_multi2(self):