We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d490db7 commit 9eac52dCopy full SHA for 9eac52d
tests/tests_pytorch/plugins/test_checkpoint_io_plugin.py
@@ -16,6 +16,7 @@
16
from typing import Any, Optional
17
from unittest.mock import MagicMock, Mock
18
19
+import pytest
20
import torch
21
22
from lightning.fabric.plugins import CheckpointIO, TorchCheckpointIO
@@ -97,6 +98,7 @@ def test_checkpoint_plugin_called(tmp_path):
97
98
checkpoint_plugin.load_checkpoint.assert_called_with(str(tmp_path / "last-v1.ckpt"))
99
100
101
+@pytest.mark.flaky(reruns=3)
102
def test_async_checkpoint_plugin(tmp_path):
103
"""Ensure that the custom checkpoint IO plugin and torch checkpoint IO plugin is called when async saving and
104
loading."""
0 commit comments