11from __future__ import print_function
22from pandas import compat
3- import unittest
43import warnings
54import nose
65from nose .tools import assert_equal
@@ -39,15 +38,17 @@ def assert_n_failed_equals_n_null_columns(wngs, obj, cls=SymbolWarning):
3938 assert msgs .str .contains ('|' .join (failed_symbols )).all ()
4039
4140
42- class TestGoogle (unittest .TestCase ):
41+ class TestGoogle (tm .TestCase ):
4342 @classmethod
4443 def setUpClass (cls ):
44+ super (TestGoogle , cls ).setUpClass ()
4545 cls .locales = tm .get_locales (prefix = 'en_US' )
4646 if not cls .locales :
4747 raise nose .SkipTest ("US English locale not available for testing" )
4848
4949 @classmethod
5050 def tearDownClass (cls ):
51+ super (TestGoogle , cls ).tearDownClass ()
5152 del cls .locales
5253
5354 @network
@@ -109,9 +110,10 @@ def test_get_multi2(self):
109110 assert_n_failed_equals_n_null_columns (w , result )
110111
111112
112- class TestYahoo (unittest .TestCase ):
113+ class TestYahoo (tm .TestCase ):
113114 @classmethod
114115 def setUpClass (cls ):
116+ super (TestYahoo , cls ).setUpClass ()
115117 _skip_if_no_lxml ()
116118
117119 @network
@@ -228,9 +230,10 @@ def test_get_date_ret_index(self):
228230 assert np .issubdtype (pan .values .dtype , np .floating )
229231
230232
231- class TestYahooOptions (unittest .TestCase ):
233+ class TestYahooOptions (tm .TestCase ):
232234 @classmethod
233235 def setUpClass (cls ):
236+ super (TestYahooOptions , cls ).setUpClass ()
234237 _skip_if_no_lxml ()
235238
236239 # aapl has monthlies
@@ -245,6 +248,7 @@ def setUpClass(cls):
245248
246249 @classmethod
247250 def tearDownClass (cls ):
251+ super (TestYahooOptions , cls ).tearDownClass ()
248252 del cls .aapl , cls .expiry
249253
250254 @network
@@ -287,9 +291,10 @@ def test_get_put_data(self):
287291 assert len (puts )> 1
288292
289293
290- class TestOptionsWarnings (unittest .TestCase ):
294+ class TestOptionsWarnings (tm .TestCase ):
291295 @classmethod
292296 def setUpClass (cls ):
297+ super (TestOptionsWarnings , cls ).setUpClass ()
293298 _skip_if_no_lxml ()
294299
295300 with assert_produces_warning (FutureWarning ):
@@ -304,6 +309,7 @@ def setUpClass(cls):
304309
305310 @classmethod
306311 def tearDownClass (cls ):
312+ super (TestOptionsWarnings , cls ).tearDownClass ()
307313 del cls .aapl , cls .year , cls .month
308314
309315 @network
@@ -346,7 +352,7 @@ def test_get_put_data_warning(self):
346352 warnings .warn ("IndexError thrown no tables found" )
347353
348354
349- class TestDataReader (unittest .TestCase ):
355+ class TestDataReader (tm .TestCase ):
350356 def test_is_s3_url (self ):
351357 from pandas .io .common import _is_s3_url
352358 self .assert_ (_is_s3_url ("s3://pandas/somethingelse.com" ))
@@ -376,7 +382,7 @@ def test_read_famafrench(self):
376382 assert isinstance (ff , dict )
377383
378384
379- class TestFred (unittest .TestCase ):
385+ class TestFred (tm .TestCase ):
380386 @network
381387 def test_fred (self ):
382388 """
0 commit comments