mirror of https://github.com/tqdm/tqdm.git
tests: fix pandas warnings
This commit is contained in:
parent
a95cd88465
commit
a4d15c8e2f
|
@ -28,6 +28,7 @@ dependencies:
|
|||
- matplotlib # gui
|
||||
- numpy # pandas, keras, contrib.tenumerate
|
||||
- pandas
|
||||
- pyarrow # pandas
|
||||
- tensorflow # keras
|
||||
- slack-sdk # contrib.slack
|
||||
- requests # contrib.telegram
|
||||
|
|
|
@ -115,6 +115,8 @@ def test_pandas_data_frame():
|
|||
f"\nExpected:\n{exres} at least once.\nIn:\n{our_file.read()}\n")
|
||||
|
||||
|
||||
@mark.filterwarnings(
|
||||
"ignore:DataFrameGroupBy.apply operated on the grouping columns:DeprecationWarning")
|
||||
def test_pandas_groupby_apply():
|
||||
"""Test pandas.DataFrame.groupby(...).progress_apply"""
|
||||
with closing(StringIO()) as our_file:
|
||||
|
@ -167,6 +169,8 @@ def test_pandas_groupby_apply():
|
|||
f"\nExpected:\n{exres} at least once.\nIn:\n{our_file.read()}\n")
|
||||
|
||||
|
||||
@mark.filterwarnings(
|
||||
"ignore:DataFrameGroupBy.apply operated on the grouping columns:DeprecationWarning")
|
||||
def test_pandas_leave():
|
||||
"""Test pandas with `leave=True`"""
|
||||
with closing(StringIO()) as our_file:
|
||||
|
@ -201,6 +205,8 @@ def test_pandas_apply_args_deprecation():
|
|||
"keyword arguments instead"))
|
||||
|
||||
|
||||
@mark.filterwarnings(
|
||||
"ignore:DataFrameGroupBy.apply operated on the grouping columns:DeprecationWarning")
|
||||
def test_pandas_deprecation():
|
||||
"""Test bar object instance as argument deprecation"""
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue