File tree Expand file tree Collapse file tree 2 files changed +5
-34
lines changed Expand file tree Collapse file tree 2 files changed +5
-34
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ numpy = ">= 1.23.5"
3434
3535[tool .poetry .group .dev .dependencies ]
3636mypy = " 1.10.1"
37- pandas = " 2.2.2 "
37+ pandas = " 2.2.3 "
3838pyarrow = " >=10.0.1"
3939pytest = " >=7.1.2"
40- pyright = " >= 1.1.374 "
40+ pyright = " >= 1.1.383 "
4141poethepoet = " >=0.16.5"
4242loguru = " >=0.6.0"
4343typing-extensions = " >=4.4.0"
Original file line number Diff line number Diff line change 1- from contextlib import (
2- AbstractContextManager ,
3- nullcontext ,
4- )
5- import platform
6-
71import pandas as pd
8- import pytest
92from typing_extensions import assert_type
103
11- from tests import (
12- NUMPY20 ,
13- PD_LTE_22 ,
14- check ,
15- pytest_warns_bounded ,
16- )
4+ from tests import check
175
186
197def test_show_version ():
208 """Test show_versions method types with split case for pandas and python versions."""
21- if PD_LTE_22 :
22- context : AbstractContextManager = nullcontext ()
23- # distutils warning is only raised with pandas<3.0.0
24- if NUMPY20 : # https://github.com/PyTables/PyTables/issues/1172
25- context = pytest .raises (ValueError )
26- with (
27- pytest_warns_bounded (
28- UserWarning ,
29- match = "Setuptools is replacing distutils" ,
30- upper = "3.11.99" ,
31- version_str = platform .python_version (),
32- ),
33- context ,
34- ):
35- check (assert_type (pd .show_versions (True ), None ), type (None ))
36- check (assert_type (pd .show_versions (False ), None ), type (None ))
37- else :
38- check (assert_type (pd .show_versions (True ), None ), type (None ))
39- check (assert_type (pd .show_versions (False ), None ), type (None ))
9+ check (assert_type (pd .show_versions (True ), None ), type (None ))
10+ check (assert_type (pd .show_versions (False ), None ), type (None ))
4011
4112
4213def test_dummies ():
You can’t perform that action at this time.
0 commit comments