Skip to content

Commit 9320540

Browse files
committed
Added new test to Panel section
1 parent 472cf11 commit 9320540

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.pytest_cache/v/cache/lastfailed

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"pandas/tests/generic/test_panel.py::TestPanel::()::test_pct_change[-1-bfill-1-exp7]": true,
3+
"pandas/tests/generic/test_panel.py::TestPanel::()::test_pct_change[-1-bfill-None-exp6]": true,
4+
"pandas/tests/generic/test_panel.py::TestPanel::()::test_pct_change[-1-ffill-1-exp5]": true,
5+
"pandas/tests/generic/test_panel.py::TestPanel::()::test_pct_change[-1-ffill-None-exp4]": true,
6+
"pandas/tests/generic/test_panel.py::TestPanel::()::test_pct_change[1-bfill-1-exp3]": true,
7+
"pandas/tests/generic/test_panel.py::TestPanel::()::test_pct_change[1-bfill-None-exp2]": true,
8+
"pandas/tests/generic/test_panel.py::TestPanel::()::test_pct_change[1-ffill-1-exp1]": true,
9+
"pandas/tests/generic/test_panel.py::TestPanel::()::test_pct_change[1-ffill-None-exp0]": true
10+
}

pandas/tests/generic/test_generic.py

-2
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,6 @@ def test_copy_and_deepcopy(self):
604604
])
605605
def test_pct_change(self, periods, fill_method, limit, exp):
606606
obj = self._construct(0)
607-
if type(obj) is Panel:
608-
pytest.skip("Not testing deprecated Panel")
609607
is_frame = type(obj) is DataFrame
610608
ser = pd.Series([np.nan, np.nan, 1, 2, 4, 10, np.nan, np.nan])
611609
obj = pd.concat((obj, ser))

pandas/tests/generic/test_panel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_to_xarray(self):
4545
'test_stat_non_defaults_args',
4646
'test_truncate_out_of_bounds',
4747
'test_metadata_propagation', 'test_copy_and_deepcopy',
48-
'test_sample']:
48+
'test_pct_change', 'test_sample']:
4949

5050
def f():
5151
def tester(self):

0 commit comments

Comments
 (0)