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 1717 is_dtype_equal ,
1818 is_interval_dtype ,
1919 is_period_dtype ,
20- is_signed_integer_dtype ,
2120 is_string_dtype ,
2221)
2322from 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-
11571153def test_is_bool_dtype_sparse ():
11581154 result = is_bool_dtype (Series (SparseArray ([True , False ])))
11591155 assert result is True
You can’t perform that action at this time.
0 commit comments