File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -249,31 +249,26 @@ def test_groupby(self):
249
249
class TestJson (tm .TestCase ):
250
250
251
251
def test_deprecation_access_func (self ):
252
- with tm .assert_produces_warning (FutureWarning ,
253
- check_stacklevel = False ):
252
+ with catch_warnings (record = True ):
254
253
pd .json .dumps ([])
255
254
256
255
257
256
class TestParser (tm .TestCase ):
258
257
259
258
def test_deprecation_access_func (self ):
260
- with tm .assert_produces_warning (FutureWarning ,
261
- check_stacklevel = False ):
259
+ with catch_warnings (record = True ):
262
260
pd .parser .na_values
263
261
264
262
265
263
class TestLib (tm .TestCase ):
266
264
267
265
def test_deprecation_access_func (self ):
268
- with tm .assert_produces_warning (FutureWarning ,
269
- check_stacklevel = False ):
266
+ with catch_warnings (record = True ):
270
267
pd .lib .infer_dtype
271
268
272
269
273
270
class TestTSLib (tm .TestCase ):
274
271
275
272
def test_deprecation_access_func (self ):
276
- # some libraries may be imported before we
277
- # test and could show the warning
278
273
with catch_warnings (record = True ):
279
274
pd .tslib .Timestamp
You can’t perform that action at this time.
0 commit comments