File tree 2 files changed +3
-3
lines changed
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):
163
163
self .check (types , self .allowed )
164
164
165
165
def check_deprecation (self , fold , fnew ):
166
- with tm .assert_produces_warning (FutureWarning ):
166
+ with tm .assert_produces_warning (DeprecationWarning ):
167
167
try :
168
168
result = fold ('foo' )
169
169
expected = fnew ('foo' )
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def wrapper(*args, **kwargs):
31
31
warnings .warn ("pandas.core.common.{t} is deprecated. "
32
32
"import from the public API: "
33
33
"pandas.api.types.{t} instead" .format (t = t ),
34
- FutureWarning , stacklevel = 3 )
34
+ DeprecationWarning , stacklevel = 3 )
35
35
return getattr (types , t )(* args , ** kwargs )
36
36
return wrapper
37
37
@@ -57,7 +57,7 @@ def wrapper(*args, **kwargs):
57
57
"These are not longer public API functions, "
58
58
"but can be imported from "
59
59
"pandas.types.common.{t} instead" .format (t = t ),
60
- FutureWarning , stacklevel = 3 )
60
+ DeprecationWarning , stacklevel = 3 )
61
61
return getattr (common , t )(* args , ** kwargs )
62
62
return wrapper
63
63
You can’t perform that action at this time.
0 commit comments