File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 17
17
is_dtype_equal ,
18
18
is_interval_dtype ,
19
19
is_period_dtype ,
20
- is_signed_integer_dtype ,
21
20
is_string_dtype ,
22
21
)
23
22
from pandas .core .dtypes .dtypes import (
@@ -250,10 +249,14 @@ def test_alias_to_unit_raises(self):
250
249
251
250
def test_alias_to_unit_bad_alias_raises (self ):
252
251
# 23990
253
- with pytest .raises (TypeError , match = "" ):
252
+ with pytest .raises (
253
+ TypeError , match = "Cannot construct a 'DatetimeTZDtype' from"
254
+ ):
254
255
DatetimeTZDtype ("this is a bad string" )
255
256
256
- with pytest .raises (TypeError , match = "" ):
257
+ with pytest .raises (
258
+ TypeError , match = "Cannot construct a 'DatetimeTZDtype' from"
259
+ ):
257
260
DatetimeTZDtype ("datetime64[ns, US/NotATZ]" )
258
261
259
262
def test_hash_vs_equality (self , dtype ):
@@ -1147,13 +1150,6 @@ def test_is_bool_dtype(dtype, expected):
1147
1150
assert result is expected
1148
1151
1149
1152
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
-
1157
1153
def test_is_bool_dtype_sparse ():
1158
1154
result = is_bool_dtype (Series (SparseArray ([True , False ])))
1159
1155
assert result is True
You can’t perform that action at this time.
0 commit comments