@@ -122,19 +122,19 @@ def deprecate_kwarg(
122122 >>> f(columns='should work ok')
123123 should work ok
124124
125- >>> f(cols='should raise warning')
125+ >>> f(cols='should raise warning') # doctest: +SKIP
126126 FutureWarning: cols is deprecated, use columns instead
127127 warnings.warn(msg, FutureWarning)
128128 should raise warning
129129
130- >>> f(cols='should error', columns="can\' t pass do both")
130+ >>> f(cols='should error', columns="can\' t pass do both") # doctest: +SKIP
131131 TypeError: Can only specify 'cols' or 'columns', not both
132132
133133 >>> @deprecate_kwarg('old', 'new', {'yes': True, 'no': False})
134134 ... def f(new=False):
135135 ... print('yes!' if new else 'no!')
136136 ...
137- >>> f(old='yes')
137+ >>> f(old='yes') # doctest: +SKIP
138138 FutureWarning: old='yes' is deprecated, use new=True instead
139139 warnings.warn(msg, FutureWarning)
140140 yes!
@@ -145,14 +145,14 @@ def deprecate_kwarg(
145145 ... def f(cols='', another_param=''):
146146 ... print(cols)
147147 ...
148- >>> f(cols='should raise warning')
148+ >>> f(cols='should raise warning') # doctest: +SKIP
149149 FutureWarning: the 'cols' keyword is deprecated and will be removed in a
150150 future version please takes steps to stop use of 'cols'
151151 should raise warning
152- >>> f(another_param='should not raise warning')
152+ >>> f(another_param='should not raise warning') # doctest: +SKIP
153153 should not raise warning
154154
155- >>> f(cols='should raise warning', another_param='')
155+ >>> f(cols='should raise warning', another_param='') # doctest: +SKIP
156156 FutureWarning: the 'cols' keyword is deprecated and will be removed in a
157157 future version please takes steps to stop use of 'cols'
158158 should raise warning
0 commit comments