Skip to content

Commit 65b2931

Browse files
committed
REV: Revert changes to test_dtypes.py in this PR
1 parent 3d0832a commit 65b2931

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

pandas/tests/dtypes/test_dtypes.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
is_dtype_equal,
1818
is_interval_dtype,
1919
is_period_dtype,
20-
is_signed_integer_dtype,
2120
is_string_dtype,
2221
)
2322
from pandas.core.dtypes.dtypes import (
@@ -250,10 +249,14 @@ def test_alias_to_unit_raises(self):
250249

251250
def test_alias_to_unit_bad_alias_raises(self):
252251
# 23990
253-
with pytest.raises(TypeError, match=""):
252+
with pytest.raises(
253+
TypeError, match="Cannot construct a 'DatetimeTZDtype' from"
254+
):
254255
DatetimeTZDtype("this is a bad string")
255256

256-
with pytest.raises(TypeError, match=""):
257+
with pytest.raises(
258+
TypeError, match="Cannot construct a 'DatetimeTZDtype' from"
259+
):
257260
DatetimeTZDtype("datetime64[ns, US/NotATZ]")
258261

259262
def test_hash_vs_equality(self, dtype):
@@ -1147,13 +1150,6 @@ def test_is_bool_dtype(dtype, expected):
11471150
assert result is expected
11481151

11491152

1150-
def test_is_signed_integer_dtype_with_abstract_types():
1151-
# GH 62018
1152-
assert is_signed_integer_dtype(np.floating) is False
1153-
assert is_signed_integer_dtype(np.inexact) is False
1154-
assert is_signed_integer_dtype(np.generic) is False
1155-
1156-
11571153
def test_is_bool_dtype_sparse():
11581154
result = is_bool_dtype(Series(SparseArray([True, False])))
11591155
assert result is True

0 commit comments

Comments
 (0)