Skip to content

Commit ea345de

Browse files
committed
update
1 parent 2b1e31e commit ea345de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/tests_fabric/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def reset_deterministic_algorithm():
137137
torch.use_deterministic_algorithms(False)
138138

139139

140-
@pytest.fixture(autouse=True)
140+
@pytest.fixture(scope="session", autouse=True)
141141
def cleanup_lightning_ports():
142142
"""Delete Lightning deterministic port files after all tests."""
143143
from lightning.fabric.plugins.environments.lightning import LOCK_FILE

tests/tests_pytorch/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def reset_deterministic_algorithm():
139139
torch.use_deterministic_algorithms(False)
140140

141141

142-
@pytest.fixture(autouse=True)
142+
@pytest.fixture(scope="session", autouse=True)
143143
def cleanup_lightning_ports():
144144
"""Delete Lightning deterministic port files after all tests."""
145145
from lightning.fabric.plugins.environments.lightning import LOCK_FILE

0 commit comments

Comments
 (0)