Skip to content

Commit c6aeaf1

Browse files
committed
TST: skip tests on incompatible PyTables version (GH8649, GH8650)
1 parent 46c52e2 commit c6aeaf1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pandas/io/tests/test_pytables.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
import pandas
1212
from pandas import (Series, DataFrame, Panel, MultiIndex, Categorical, bdate_range,
1313
date_range, Index, DatetimeIndex, isnull)
14+
15+
from pandas.io.pytables import _tables
16+
try:
17+
_tables()
18+
except ImportError as e:
19+
raise nose.SkipTest(e)
20+
21+
1422
from pandas.io.pytables import (HDFStore, get_store, Term, read_hdf,
1523
IncompatibilityWarning, PerformanceWarning,
1624
AttributeConflictWarning, DuplicateWarning,
@@ -290,7 +298,7 @@ def test_api(self):
290298

291299
#File path doesn't exist
292300
path = ""
293-
self.assertRaises(IOError, read_hdf, path, 'df')
301+
self.assertRaises(IOError, read_hdf, path, 'df')
294302

295303
def test_api_default_format(self):
296304

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy