@@ -122,19 +122,19 @@ def deprecate_kwarg(
122
122
>>> f(columns='should work ok')
123
123
should work ok
124
124
125
- >>> f(cols='should raise warning')
125
+ >>> f(cols='should raise warning') # doctest: +SKIP
126
126
FutureWarning: cols is deprecated, use columns instead
127
127
warnings.warn(msg, FutureWarning)
128
128
should raise warning
129
129
130
- >>> f(cols='should error', columns="can\' t pass do both")
130
+ >>> f(cols='should error', columns="can\' t pass do both") # doctest: +SKIP
131
131
TypeError: Can only specify 'cols' or 'columns', not both
132
132
133
133
>>> @deprecate_kwarg('old', 'new', {'yes': True, 'no': False})
134
134
... def f(new=False):
135
135
... print('yes!' if new else 'no!')
136
136
...
137
- >>> f(old='yes')
137
+ >>> f(old='yes') # doctest: +SKIP
138
138
FutureWarning: old='yes' is deprecated, use new=True instead
139
139
warnings.warn(msg, FutureWarning)
140
140
yes!
@@ -145,14 +145,14 @@ def deprecate_kwarg(
145
145
... def f(cols='', another_param=''):
146
146
... print(cols)
147
147
...
148
- >>> f(cols='should raise warning')
148
+ >>> f(cols='should raise warning') # doctest: +SKIP
149
149
FutureWarning: the 'cols' keyword is deprecated and will be removed in a
150
150
future version please takes steps to stop use of 'cols'
151
151
should raise warning
152
- >>> f(another_param='should not raise warning')
152
+ >>> f(another_param='should not raise warning') # doctest: +SKIP
153
153
should not raise warning
154
154
155
- >>> f(cols='should raise warning', another_param='')
155
+ >>> f(cols='should raise warning', another_param='') # doctest: +SKIP
156
156
FutureWarning: the 'cols' keyword is deprecated and will be removed in a
157
157
future version please takes steps to stop use of 'cols'
158
158
should raise warning
0 commit comments