def test_strided_moving_window_invalid_stride_error(self):
        """
        Checks that appropriate error is thrown when `stride` is set to
        a non-positive number and/or a non-`int` value.
        """
        x = np.arange(1)
        # `stride` isn't positive:
        with pytest.raises(ValueError) as err:
            strided_moving_window(x, window_len=1, stride=0)
        assert ("`stride` must be a positive `int`.") == str(err.value)
        # `stride` is `float`, not `int`:
        with pytest.raises(ValueError) as err:
            strided_moving_window(x, window_len=1, stride=1.1)
        assert ("`stride` must be a positive `int`.") == str(err.value)

        Checks that appropriate error is thrown when `stride` is set to
        a non-positive number and/or a non-`int` value.
        
darts/tests/utils/tabularization/test_strided_moving_window.py