Skip to content

Commit

Permalink
Bump to pandas 2.2.3 (pandas-dev#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Irv authored Oct 8, 2024
1 parent 668292f commit fecd8e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 34 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ numpy = ">= 1.23.5"

[tool.poetry.group.dev.dependencies]
mypy = "1.10.1"
pandas = "2.2.2"
pandas = "2.2.3"
pyarrow = ">=10.0.1"
pytest = ">=7.1.2"
pyright = ">= 1.1.374"
pyright = ">= 1.1.383"
poethepoet = ">=0.16.5"
loguru = ">=0.6.0"
typing-extensions = ">=4.4.0"
Expand Down
35 changes: 3 additions & 32 deletions tests/test_utility.py
Original file line number Diff line number Diff line change
@@ -1,42 +1,13 @@
from contextlib import (
AbstractContextManager,
nullcontext,
)
import platform

import pandas as pd
import pytest
from typing_extensions import assert_type

from tests import (
NUMPY20,
PD_LTE_22,
check,
pytest_warns_bounded,
)
from tests import check


def test_show_version():
"""Test show_versions method types with split case for pandas and python versions."""
if PD_LTE_22:
context: AbstractContextManager = nullcontext()
# distutils warning is only raised with pandas<3.0.0
if NUMPY20: # https://github.com/PyTables/PyTables/issues/1172
context = pytest.raises(ValueError)
with (
pytest_warns_bounded(
UserWarning,
match="Setuptools is replacing distutils",
upper="3.11.99",
version_str=platform.python_version(),
),
context,
):
check(assert_type(pd.show_versions(True), None), type(None))
check(assert_type(pd.show_versions(False), None), type(None))
else:
check(assert_type(pd.show_versions(True), None), type(None))
check(assert_type(pd.show_versions(False), None), type(None))
check(assert_type(pd.show_versions(True), None), type(None))
check(assert_type(pd.show_versions(False), None), type(None))


def test_dummies():
Expand Down

0 comments on commit fecd8e9

Please sign in to comment.