Skip to content

Commit

Permalink
Merge pull request yt-project#4784 from neutrinoceros/tst/ignore-pand…
Browse files Browse the repository at this point in the history
…as-pyarrow-warning

TST: ignore deprecation warning from pandas (Pyarrow will become a required dependency)
  • Loading branch information
matthewturk authored Jan 26, 2024
2 parents 6fbe25f + 2848ceb commit dbe0965
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
else:
SETUPTOOLS_VERSION = None

if find_spec("pandas") is not None:
PANDAS_VERSION = Version(version("pandas"))
else:
PANDAS_VERSION = None


def pytest_addoption(parser):
"""
Expand Down Expand Up @@ -169,6 +174,12 @@ def pytest_configure(config):
),
)

if PANDAS_VERSION is not None and PANDAS_VERSION >= Version("2.2.0"):
config.addinivalue_line(
"filterwarnings",
r"ignore:\s*Pyarrow will become a required dependency of pandas:DeprecationWarning",
)

if sys.version_info >= (3, 12):
# already patched (but not released) upstream:
# https://github.com/dateutil/dateutil/pull/1285
Expand Down

0 comments on commit dbe0965

Please sign in to comment.