File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ def test_types(self):
163163 self .check (types , self .allowed )
164164
165165 def check_deprecation (self , fold , fnew ):
166- with tm .assert_produces_warning (FutureWarning ):
166+ with tm .assert_produces_warning (DeprecationWarning ):
167167 try :
168168 result = fold ('foo' )
169169 expected = fnew ('foo' )
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def wrapper(*args, **kwargs):
3131 warnings .warn ("pandas.core.common.{t} is deprecated. "
3232 "import from the public API: "
3333 "pandas.api.types.{t} instead" .format (t = t ),
34- FutureWarning , stacklevel = 3 )
34+ DeprecationWarning , stacklevel = 3 )
3535 return getattr (types , t )(* args , ** kwargs )
3636 return wrapper
3737
@@ -57,7 +57,7 @@ def wrapper(*args, **kwargs):
5757 "These are not longer public API functions, "
5858 "but can be imported from "
5959 "pandas.types.common.{t} instead" .format (t = t ),
60- FutureWarning , stacklevel = 3 )
60+ DeprecationWarning , stacklevel = 3 )
6161 return getattr (common , t )(* args , ** kwargs )
6262 return wrapper
6363
You can’t perform that action at this time.
0 commit comments