Skip to content

Commit a63f66d

Browse files
committed
try more
1 parent 1ad2aae commit a63f66d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pandas/tests/generic/test_panel.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_to_xarray(self):
6565

6666

6767
# run all the tests, but wrap each in a warning catcher
68-
for t in ['test_rename', 'test_rename_axis', 'test_get_numeric_data',
68+
for t in ['test_rename', 'test_get_numeric_data',
6969
'test_get_default', 'test_nonzero',
7070
'test_downcast', 'test_constructor_compound_dtypes',
7171
'test_head_tail',
@@ -79,16 +79,18 @@ def test_to_xarray(self):
7979

8080
def f():
8181
def tester(self):
82+
f = getattr(super(TestPanel, self), t)
8283
with catch_warnings(record=True):
83-
return getattr(super(TestPanel, self), t)()
84+
f()
8485
return tester
8586

8687
setattr(TestPanel, t, f())
8788

8889
def f():
8990
def tester(self):
91+
f = getattr(super(TestPanel4D, self), t)
9092
with catch_warnings(record=True):
91-
return getattr(super(TestPanel4D, self), t)()
93+
f()
9294
return tester
9395

9496
setattr(TestPanel4D, t, f())

0 commit comments

Comments
 (0)