From 4c5ac1643872ad2c83ab8db4aa7887474c76bd61 Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Thu, 20 Nov 2014 18:23:15 -0800 Subject: [PATCH] BUG: missing nose import for skip test nose.SkipTest used but nose not imported. Import nose at top level and use that throughout. --- pandas/tests/test_format.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/tests/test_format.py b/pandas/tests/test_format.py index 47f9762eb0fa3..3e8534762ec05 100644 --- a/pandas/tests/test_format.py +++ b/pandas/tests/test_format.py @@ -27,6 +27,8 @@ option_context, reset_option) from datetime import datetime +import nose + _frame = DataFrame(tm.getSeriesData()) @@ -1190,7 +1192,6 @@ def test_frame_info_encoding(self): fmt.set_option('display.max_rows', 200) def test_pprint_thing(self): - import nose from pandas.core.common import pprint_thing as pp_t if PY3: @@ -3036,6 +3037,5 @@ def test_tz_dateutil(self): self.assertEqual(str(dt_datetime_us), str(Timestamp(dt_datetime_us))) if __name__ == '__main__': - import nose nose.runmodule(argv=[__file__, '-vvs', '-x', '--pdb', '--pdb-failure'], exit=False)