Skip to content

Commit a3eb0b7

Browse files
committed
fix usage of Term in tests
1 parent 024c5ff commit a3eb0b7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pandas/tests/io/pytables/test_errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
from pandas.tests.io.pytables.common import ensure_clean_store
1919

2020
from pandas.io.pytables import (
21-
Term,
2221
_maybe_adjust_name,
22+
_Term as Term,
2323
)
2424

2525
pytestmark = [pytest.mark.single_cpu]
@@ -45,7 +45,7 @@ def test_pass_spec_to_storer(setup_path):
4545
"format store. this store must be selected in its entirety"
4646
)
4747
with pytest.raises(TypeError, match=msg):
48-
store.select("df", where=[("columns=A")])
48+
store.select("df", where=["columns=A"])
4949

5050

5151
def test_table_index_incompatible_dtypes(setup_path):

pandas/tests/io/pytables/test_file_handling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
)
3232

3333
from pandas.io import pytables
34-
from pandas.io.pytables import Term
34+
from pandas.io.pytables import _Term as Term
3535

3636
pytestmark = [pytest.mark.single_cpu]
3737

pandas/tests/io/pytables/test_select.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
ensure_clean_store,
2424
)
2525

26-
from pandas.io.pytables import Term
26+
from pandas.io.pytables import _Term as Term
2727

2828
pytestmark = [pytest.mark.single_cpu]
2929

@@ -143,7 +143,7 @@ def test_select(setup_path):
143143
tm.assert_frame_equal(expected, result)
144144

145145
# equivalently
146-
result = store.select("df", [("columns=['A', 'B']")])
146+
result = store.select("df", ["columns=['A', 'B']"])
147147
expected = df.reindex(columns=["A", "B"])
148148
tm.assert_frame_equal(expected, result)
149149

0 commit comments

Comments
 (0)