diff --git a/pyproject.toml b/pyproject.toml index 2570e089..1a71a9bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ pyright = ">=1.1.396" poethepoet = ">=0.16.5" loguru = ">=0.6.0" typing-extensions = ">=4.4.0" -matplotlib = ">=3.6.3" +matplotlib = ">=3.10.1" pre-commit = ">=2.19.0" black = ">=23.3.0" isort = ">=5.12.0" @@ -59,7 +59,7 @@ xarray = ">=22.6.0" tabulate = ">=0.8.10" jinja2 = ">=3.1" scipy = { version = ">=1.9.1", python = "<3.14" } -SQLAlchemy = ">=2.0.12" +SQLAlchemy = ">=2.0.12,<2.0.39" types-python-dateutil = ">=2.8.19" beautifulsoup4 = ">=4.12.2" html5lib = ">=1.1" diff --git a/tests/test_frame.py b/tests/test_frame.py index 4d7171af..eca3cec8 100644 --- a/tests/test_frame.py +++ b/tests/test_frame.py @@ -4012,7 +4012,6 @@ def test_hashable_args() -> None: df.columns = ["test"] # type: ignore[assignment] testDict = {"test": 1} - with ensure_clean() as path: df.to_string(path, col_space=testDict) df.to_string(path, col_space={"test": 1}) @@ -4027,7 +4026,14 @@ def test_transpose() -> None: df = pd.DataFrame({"a": [1, 1, 2], "b": [4, 5, 6]}) check(assert_type(df.transpose(), pd.DataFrame), pd.DataFrame) check(assert_type(df.transpose(None), pd.DataFrame), pd.DataFrame) - check(assert_type(df.transpose(copy=True), pd.DataFrame), pd.DataFrame) + + msg = "The copy keyword is deprecated and will be removed in a future" + with pytest_warns_bounded( + DeprecationWarning, + msg, + lower="2.2.99", + ): + check(assert_type(df.transpose(copy=True), pd.DataFrame), pd.DataFrame) def test_combine() -> None: diff --git a/tests/test_series.py b/tests/test_series.py index 752450dc..bd743356 100644 --- a/tests/test_series.py +++ b/tests/test_series.py @@ -3578,6 +3578,14 @@ def test_align() -> None: aligned_s0, aligned_s1 = s0.align(s1) check(assert_type(aligned_s0, pd.Series), pd.Series) check(assert_type(aligned_s1, pd.Series), pd.Series) - aligned_s0, aligned_s1 = s0.align(s1, fill_value=0, axis=0, level=0, copy=False) + + msg = "The copy keyword is deprecated and will be removed in a future version.*" + with pytest_warns_bounded( + DeprecationWarning, + msg, + lower="2.2.99", + ): + aligned_s0, aligned_s1 = s0.align(s1, fill_value=0, axis=0, level=0, copy=False) + check(assert_type(aligned_s0, pd.Series), pd.Series) check(assert_type(aligned_s1, pd.Series), pd.Series)