diff --git a/testsuite/MDAnalysisTests/coordinates/test_dcd.py b/testsuite/MDAnalysisTests/coordinates/test_dcd.py index 40aa272e73c..31a184c1538 100644 --- a/testsuite/MDAnalysisTests/coordinates/test_dcd.py +++ b/testsuite/MDAnalysisTests/coordinates/test_dcd.py @@ -158,10 +158,10 @@ def test_timeseries_slicing(self): for start, stop, step in x: yield self._slice_generation_test, start, stop, step - # def test_backwards_stepping(self): - # x = [(4, 0, -1), (5, 0, -2), (5, 0, -4)] - # for start, stop, step in x: - # yield self._failed_slices_test, start, stop, step + def test_backwards_stepping(self): + x = [(4, 0, -1), (5, 0, -2), (5, 0, -4)] + for start, stop, step in x: + yield self._failed_slices_test, start, stop, step def _slice_generation_test(self, start, stop, step): self.u = mda.Universe(PSF, DCD) @@ -169,12 +169,11 @@ def _slice_generation_test(self, start, stop, step): ts_skip = self.u.trajectory.timeseries(self.u.atoms, start, stop, step) assert_array_almost_equal(ts[:,start:stop:step], ts_skip, 5) - # @knownfailure - # def _failed_slices_test(self, start, stop, step): - # self.u = mda.Universe(PSF, DCD) - # ts = self.u.trajectory.timeseries(self.u.atoms) - # ts_skip = self.u.trajectory.timeseries(self.u.atoms, start, stop, step) - # assert_array_almost_equal(ts[:, start:stop:step,:], ts_skip, 5) + def _failed_slices_test(self, start, stop, step): + self.u = mda.Universe(PSF, DCD) + ts = self.u.trajectory.timeseries(self.u.atoms) + ts_skip = self.u.trajectory.timeseries(self.u.atoms, start, stop, step) + assert_array_almost_equal(ts[:, start:stop:step,:], ts_skip, 5) def test_DCDReader_set_dt(dt=100., frame=3):