Skip to content

Commit b936320

Browse files
committed
TST: refine filter for Panel warnings
1 parent 786e403 commit b936320

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/tests/indexing/common.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
""" common utilities """
22

33
import itertools
4-
from warnings import catch_warnings
4+
from warnings import catch_warnings, filterwarnings
55
import numpy as np
66

77
from pandas.compat import lrange
@@ -300,7 +300,8 @@ def _call(obj=obj):
300300

301301
# Panel deprecations
302302
if isinstance(obj, Panel):
303-
with catch_warnings(record=True):
303+
with catch_warnings():
304+
filterwarnings("ignore", "\nPanel*", FutureWarning)
304305
_call()
305306
else:
306307
_call()

0 commit comments

Comments
 (0)