(self, q, compute_backend)
| 1989 | @pytest.mark.parametrize("compute_backend", ["numbagg", None], indirect=True) |
| 1990 | @pytest.mark.parametrize("q", [-0.1, 1.1, [2], [0.25, 2]]) |
| 1991 | def test_quantile_out_of_bounds(self, q, compute_backend): |
| 1992 | v = Variable(["x", "y"], self.d) |
| 1993 | |
| 1994 | # escape special characters |
| 1995 | with pytest.raises( |
| 1996 | ValueError, |
| 1997 | match=r"(Q|q)uantiles must be in the range \[0, 1\]", |
| 1998 | ): |
| 1999 | v.quantile(q, dim="x") |
| 2000 | |
| 2001 | @requires_dask |
| 2002 | @requires_bottleneck |