|
7 | 7 | from lightning.fabric.utilities.spike import TrainingSpikeException |
8 | 8 | from lightning.pytorch import LightningModule, Trainer |
9 | 9 | from lightning.pytorch.callbacks.spike import SpikeDetection |
10 | | -from tests_pytorch.helpers.runif import _XFAIL_GLOO_WINDOWS, RunIf |
| 10 | +from tests_pytorch.helpers.runif import RunIf, _xfail_gloo_windows |
11 | 11 |
|
12 | 12 |
|
13 | 13 | class IdentityModule(LightningModule): |
@@ -54,14 +54,14 @@ def on_train_batch_end(self, trainer, pl_module, outputs, batch, batch_idx): |
54 | 54 | # NOTE FOR ALL FOLLOWING TESTS: |
55 | 55 | # adding run on linux only because multiprocessing on other platforms takes forever |
56 | 56 | [ |
57 | | - pytest.param(0, 1, None, True), |
58 | | - pytest.param(0, 1, None, False), |
59 | | - pytest.param(0, 1, float("inf"), True, marks=_XFAIL_GLOO_WINDOWS), |
60 | | - pytest.param(0, 1, float("inf"), False, marks=_XFAIL_GLOO_WINDOWS), |
61 | | - pytest.param(0, 1, float("-inf"), True, marks=_XFAIL_GLOO_WINDOWS), |
62 | | - pytest.param(0, 1, float("-inf"), False, marks=_XFAIL_GLOO_WINDOWS), |
63 | | - pytest.param(0, 1, float("NaN"), True, marks=_XFAIL_GLOO_WINDOWS), |
64 | | - pytest.param(0, 1, float("NaN"), False, marks=_XFAIL_GLOO_WINDOWS), |
| 57 | + pytest.param(0, 1, None, True, marks=_xfail_gloo_windows), |
| 58 | + pytest.param(0, 1, None, False, marks=_xfail_gloo_windows), |
| 59 | + pytest.param(0, 1, float("inf"), True, marks=_xfail_gloo_windows), |
| 60 | + pytest.param(0, 1, float("inf"), False, marks=_xfail_gloo_windows), |
| 61 | + pytest.param(0, 1, float("-inf"), True, marks=_xfail_gloo_windows), |
| 62 | + pytest.param(0, 1, float("-inf"), False, marks=_xfail_gloo_windows), |
| 63 | + pytest.param(0, 1, float("NaN"), True, marks=_xfail_gloo_windows), |
| 64 | + pytest.param(0, 1, float("NaN"), False, marks=_xfail_gloo_windows), |
65 | 65 | pytest.param(0, 2, None, True, marks=RunIf(linux_only=True)), |
66 | 66 | pytest.param(0, 2, None, False, marks=RunIf(linux_only=True)), |
67 | 67 | pytest.param(1, 2, None, True, marks=RunIf(linux_only=True)), |
|
0 commit comments