Skip to content

Commit 098b32d

Browse files
committed
bump pytables to 3.5.1 pandas-dev#24839
1 parent 027f365 commit 098b32d

File tree

5 files changed

+3
-36
lines changed

5 files changed

+3
-36
lines changed

doc/source/getting_started/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ psycopg2 2.7 PostgreSQL engine for sqlalchemy
280280
pyarrow 0.15.0 Parquet, ORC, and feather reading / writing
281281
pymysql 0.7.11 MySQL engine for sqlalchemy
282282
pyreadstat SPSS files (.sav) reading
283-
pytables 3.4.4 HDF5 reading / writing
283+
pytables 3.5.1 HDF5 reading / writing
284284
pyxlsb 1.0.6 Reading for xlsb files
285285
qtpy Clipboard I/O
286286
s3fs 0.4.0 Amazon S3 access

doc/source/whatsnew/v1.2.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Optional libraries below the lowest tested version may still work, but are not c
181181
+-----------------+-----------------+---------+
182182
| pymysql | 0.7.11 | X |
183183
+-----------------+-----------------+---------+
184-
| pytables | 3.4.4 | X |
184+
| pytables | 3.5.1 | X |
185185
+-----------------+-----------------+---------+
186186
| s3fs | 0.4.0 | |
187187
+-----------------+-----------------+---------+

pandas/tests/io/pytables/test_complex.py

-5
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@
33
import numpy as np
44
import pytest
55

6-
import pandas.util._test_decorators as td
7-
86
import pandas as pd
97
from pandas import DataFrame, Series
108
import pandas._testing as tm
119
from pandas.tests.io.pytables.common import ensure_clean_path, ensure_clean_store
1210

1311
from pandas.io.pytables import read_hdf
1412

15-
# GH10447
16-
1713

1814
def test_complex_fixed(setup_path):
1915
df = DataFrame(
@@ -62,7 +58,6 @@ def test_complex_table(setup_path):
6258
tm.assert_frame_equal(df, reread)
6359

6460

65-
@td.xfail_non_writeable
6661
def test_complex_mixed_fixed(setup_path):
6762
complex64 = np.array(
6863
[1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j, 1.0 + 1.0j], dtype=np.complex64

pandas/tests/io/pytables/test_store.py

+1-14
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,6 @@ def test_put_integer(self, setup_path):
909909
df = DataFrame(np.random.randn(50, 100))
910910
self._check_roundtrip(df, tm.assert_frame_equal, setup_path)
911911

912-
@td.xfail_non_writeable
913912
def test_put_mixed_type(self, setup_path):
914913
df = tm.makeTimeDataFrame()
915914
df["obj1"] = "foo"
@@ -1518,9 +1517,7 @@ def test_to_hdf_with_min_itemsize(self, setup_path):
15181517
pd.read_hdf(path, "ss4"), pd.concat([df["B"], df2["B"]])
15191518
)
15201519

1521-
@pytest.mark.parametrize(
1522-
"format", [pytest.param("fixed", marks=td.xfail_non_writeable), "table"]
1523-
)
1520+
@pytest.mark.parametrize("format", ["fixed", "table"])
15241521
def test_to_hdf_errors(self, format, setup_path):
15251522

15261523
data = ["\ud800foo"]
@@ -1956,7 +1953,6 @@ def test_pass_spec_to_storer(self, setup_path):
19561953
with pytest.raises(TypeError):
19571954
store.select("df", where=[("columns=A")])
19581955

1959-
@td.xfail_non_writeable
19601956
def test_append_misc(self, setup_path):
19611957

19621958
with ensure_clean_store(setup_path) as store:
@@ -2164,7 +2160,6 @@ def test_unimplemented_dtypes_table_columns(self, setup_path):
21642160
with pytest.raises(TypeError):
21652161
store.append("df_unimplemented", df)
21662162

2167-
@td.xfail_non_writeable
21682163
@pytest.mark.skipif(
21692164
LooseVersion(np.__version__) == LooseVersion("1.15.0"),
21702165
reason=(
@@ -2399,7 +2394,6 @@ def test_float_index(self, setup_path):
23992394
s = Series(np.random.randn(10), index=index)
24002395
self._check_roundtrip(s, tm.assert_series_equal, path=setup_path)
24012396

2402-
@td.xfail_non_writeable
24032397
def test_tuple_index(self, setup_path):
24042398

24052399
# GH #492
@@ -2412,7 +2406,6 @@ def test_tuple_index(self, setup_path):
24122406
simplefilter("ignore", pd.errors.PerformanceWarning)
24132407
self._check_roundtrip(DF, tm.assert_frame_equal, path=setup_path)
24142408

2415-
@td.xfail_non_writeable
24162409
@pytest.mark.filterwarnings("ignore::pandas.errors.PerformanceWarning")
24172410
def test_index_types(self, setup_path):
24182411

@@ -2474,7 +2467,6 @@ def test_timeseries_preepoch(self, setup_path):
24742467
except OverflowError:
24752468
pytest.skip("known failer on some windows platforms")
24762469

2477-
@td.xfail_non_writeable
24782470
@pytest.mark.parametrize(
24792471
"compression", [False, pytest.param(True, marks=td.skip_if_windows_python_3)]
24802472
)
@@ -2508,7 +2500,6 @@ def test_frame(self, compression, setup_path):
25082500
# empty
25092501
self._check_roundtrip(df[:0], tm.assert_frame_equal, path=setup_path)
25102502

2511-
@td.xfail_non_writeable
25122503
def test_empty_series_frame(self, setup_path):
25132504
s0 = Series(dtype=object)
25142505
s1 = Series(name="myseries", dtype=object)
@@ -2522,7 +2513,6 @@ def test_empty_series_frame(self, setup_path):
25222513
self._check_roundtrip(df1, tm.assert_frame_equal, path=setup_path)
25232514
self._check_roundtrip(df2, tm.assert_frame_equal, path=setup_path)
25242515

2525-
@td.xfail_non_writeable
25262516
@pytest.mark.parametrize(
25272517
"dtype", [np.int64, np.float64, object, "m8[ns]", "M8[ns]"]
25282518
)
@@ -2608,7 +2598,6 @@ def test_store_series_name(self, setup_path):
26082598
recons = store["series"]
26092599
tm.assert_series_equal(recons, series)
26102600

2611-
@td.xfail_non_writeable
26122601
@pytest.mark.parametrize(
26132602
"compression", [False, pytest.param(True, marks=td.skip_if_windows_python_3)]
26142603
)
@@ -4176,7 +4165,6 @@ def test_pytables_native2_read(self, datapath, setup_path):
41764165
d1 = store["detector"]
41774166
assert isinstance(d1, DataFrame)
41784167

4179-
@td.xfail_non_writeable
41804168
def test_legacy_table_fixed_format_read_py2(self, datapath, setup_path):
41814169
# GH 24510
41824170
# legacy table with fixed format written in Python 2
@@ -4350,7 +4338,6 @@ def test_unicode_longer_encoded(self, setup_path):
43504338
result = store.get("df")
43514339
tm.assert_frame_equal(result, df)
43524340

4353-
@td.xfail_non_writeable
43544341
def test_store_datetime_mixed(self, setup_path):
43554342

43564343
df = DataFrame({"a": [1, 2, 3], "b": [1.0, 2.0, 3.0], "c": ["a", "b", "c"]})

pandas/util/_test_decorators.py

-15
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,6 @@ def safe_import(mod_name: str, min_version: Optional[str] = None):
7575
return False
7676

7777

78-
# TODO:
79-
# remove when gh-24839 is fixed.
80-
# this affects numpy 1.16 and pytables 3.4.4
81-
tables = safe_import("tables")
82-
xfail_non_writeable = pytest.mark.xfail(
83-
tables
84-
and LooseVersion(np.__version__) >= LooseVersion("1.16")
85-
and LooseVersion(tables.__version__) < LooseVersion("3.5.1"),
86-
reason=(
87-
"gh-25511, gh-24839. pytables needs a "
88-
"release beyond 3.4.4 to support numpy 1.16.x"
89-
),
90-
)
91-
92-
9378
def _skip_if_no_mpl():
9479
mod = safe_import("matplotlib")
9580
if mod:

0 commit comments

Comments
 (0)