Skip to content

Commit c73b380

Browse files
authored
TST: Update numpy version check for test_pandas_dtype_numpy_warning (#60929)
* TST: Update numpy version check for test_pandas_dtype_numpy_warning * less than the dev version
1 parent cb33796 commit c73b380

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/dtypes/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ def pandas_dtype(dtype) -> DtypeObj:
18361836
# raise a consistent TypeError if failed
18371837
try:
18381838
with warnings.catch_warnings():
1839-
# TODO: warnings.catch_warnings can be removed when numpy>2.2.2
1839+
# TODO: warnings.catch_warnings can be removed when numpy>2.3.0
18401840
# is the minimum version
18411841
# GH#51523 - Series.astype(np.integer) doesn't show
18421842
# numpy deprecation warning of np.integer

pandas/tests/dtypes/test_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def test_validate_allhashable():
789789

790790
def test_pandas_dtype_numpy_warning():
791791
# GH#51523
792-
if Version(np.__version__) <= Version("2.2.2"):
792+
if Version(np.__version__) < Version("2.3.0.dev0"):
793793
ctx = tm.assert_produces_warning(
794794
DeprecationWarning,
795795
check_stacklevel=False,

0 commit comments

Comments
 (0)