Skip to content

Commit 063d340

Browse files
rbenesradekbenesinno
authored andcommitted
Revert import tables back to function
1 parent b50e49f commit 063d340

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pandas/io/pytables.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import warnings
1414

1515
import numpy as np
16-
from tables import __version__ as tables_version
1716

1817
from pandas._config import config, get_option
1918

@@ -4117,6 +4116,7 @@ def write(
41174116
data_columns=None,
41184117
track_times=True,
41194118
):
4119+
from tables import __version__ as tables_version
41204120

41214121
if not append and self.is_exists:
41224122
self._handle.remove_node(self.group, "table")

pandas/tests/io/pytables/test_store.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,7 @@ def test_keys(self, setup_path):
300300

301301
@pytest.mark.skipif(
302302
LooseVersion(tables.__version__) < LooseVersion("3.4.3"),
303-
reason=(
304-
"Skipping pytables test when tables version is "
305-
"lower than 3.4.3"
306-
),
303+
reason=("Skipping pytables test when tables version is lower than 3.4.3"),
307304
)
308305
def test_no_track_times(self, setup_path):
309306

0 commit comments

Comments
 (0)