|
8 | 8 |
|
9 | 9 | from .. import accessors, conversion
|
10 | 10 | from ..errors import DimensionalityError
|
11 |
| -from .utils import assert_equal, assert_identical, assert_units_equal, raises_regex |
| 11 | +from .utils import ( |
| 12 | + assert_equal, |
| 13 | + assert_identical, |
| 14 | + assert_units_equal, |
| 15 | + raises_regex, |
| 16 | + requires_bottleneck, |
| 17 | + requires_dask_array, |
| 18 | + requires_scipy, |
| 19 | +) |
12 | 20 |
|
13 | 21 | pytestmark = [
|
14 | 22 | pytest.mark.filterwarnings("error::pint.UnitStrippedWarning"),
|
@@ -814,6 +822,7 @@ def test_drop_sel(obj, indexers, expected, error):
|
814 | 822 | assert_identical(actual, expected)
|
815 | 823 |
|
816 | 824 |
|
| 825 | +@requires_dask_array |
817 | 826 | @pytest.mark.parametrize(
|
818 | 827 | "obj",
|
819 | 828 | (
|
@@ -1144,6 +1153,7 @@ def test_reindex_like(obj, other, expected, error):
|
1144 | 1153 | assert_identical(actual, expected)
|
1145 | 1154 |
|
1146 | 1155 |
|
| 1156 | +@requires_scipy |
1147 | 1157 | @pytest.mark.parametrize(
|
1148 | 1158 | ["obj", "indexers", "expected", "error"],
|
1149 | 1159 | (
|
@@ -1307,6 +1317,7 @@ def test_interp(obj, indexers, expected, error):
|
1307 | 1317 | assert_identical(actual, expected)
|
1308 | 1318 |
|
1309 | 1319 |
|
| 1320 | +@requires_scipy |
1310 | 1321 | @pytest.mark.parametrize(
|
1311 | 1322 | ["obj", "other", "expected", "error"],
|
1312 | 1323 | (
|
@@ -1504,6 +1515,7 @@ def test_interp_like(obj, other, expected, error):
|
1504 | 1515 | assert_identical(actual, expected)
|
1505 | 1516 |
|
1506 | 1517 |
|
| 1518 | +@requires_bottleneck |
1507 | 1519 | @pytest.mark.parametrize(
|
1508 | 1520 | ["obj", "expected"],
|
1509 | 1521 | (
|
@@ -1598,6 +1610,7 @@ def test_ffill(obj, expected):
|
1598 | 1610 | assert_units_equal(actual, expected)
|
1599 | 1611 |
|
1600 | 1612 |
|
| 1613 | +@requires_bottleneck |
1601 | 1614 | @pytest.mark.parametrize(
|
1602 | 1615 | ["obj", "expected"],
|
1603 | 1616 | (
|
|
0 commit comments