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"
34
34
35
35
[tool .poetry .group .dev .dependencies ]
36
36
mypy = " 1.10.1"
37
- pandas = " 2.2.2 "
37
+ pandas = " 2.2.3 "
38
38
pyarrow = " >=10.0.1"
39
39
pytest = " >=7.1.2"
40
- pyright = " >= 1.1.374 "
40
+ pyright = " >= 1.1.383 "
41
41
poethepoet = " >=0.16.5"
42
42
loguru = " >=0.6.0"
43
43
typing-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
-
7
1
import pandas as pd
8
- import pytest
9
2
from typing_extensions import assert_type
10
3
11
- from tests import (
12
- NUMPY20 ,
13
- PD_LTE_22 ,
14
- check ,
15
- pytest_warns_bounded ,
16
- )
4
+ from tests import check
17
5
18
6
19
7
def test_show_version ():
20
8
"""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 ))
40
11
41
12
42
13
def test_dummies ():
You can’t perform that action at this time.
0 commit comments