From c6aeaf106db933f04db7431c622b62b788bbcee3 Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Mon, 27 Oct 2014 08:06:59 -0400 Subject: [PATCH] TST: skip tests on incompatible PyTables version (GH8649, GH8650) --- pandas/io/tests/test_pytables.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pandas/io/tests/test_pytables.py b/pandas/io/tests/test_pytables.py index da9d39ae82617..7fe7c83988b84 100644 --- a/pandas/io/tests/test_pytables.py +++ b/pandas/io/tests/test_pytables.py @@ -11,6 +11,14 @@ import pandas from pandas import (Series, DataFrame, Panel, MultiIndex, Categorical, bdate_range, date_range, Index, DatetimeIndex, isnull) + +from pandas.io.pytables import _tables +try: + _tables() +except ImportError as e: + raise nose.SkipTest(e) + + from pandas.io.pytables import (HDFStore, get_store, Term, read_hdf, IncompatibilityWarning, PerformanceWarning, AttributeConflictWarning, DuplicateWarning, @@ -290,7 +298,7 @@ def test_api(self): #File path doesn't exist path = "" - self.assertRaises(IOError, read_hdf, path, 'df') + self.assertRaises(IOError, read_hdf, path, 'df') def test_api_default_format(self):