Skip to content

Commit 85bbdce

Browse files
Update tests/tests_fabric/plugins/environments/test_xla.py
Co-authored-by: Bhimraj Yadav <[email protected]>
1 parent 13cf1d0 commit 85bbdce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests_fabric/plugins/environments/test_xla.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ def test_detect(monkeypatch):
100100

101101

102102
@mock.patch.dict(os.environ, {}, clear=True)
103+
@mock.patch("lightning.fabric.accelerators.xla._XLA_GREATER_EQUAL_2_1", True)
104+
@mock.patch("(lightning.fabric.plugins.environments.xla._XLA_GREATER_EQUAL_2_1", True)
103105
def test_attributes_from_xla_greater_21_used(xla_available, monkeypatch):
104106
"""Test XLA environment attributes when using XLA runtime >= 2.1."""
105-
monkeypatch.setattr(lightning.fabric.accelerators.xla, "_XLA_GREATER_EQUAL_2_1", True)
106-
monkeypatch.setattr(lightning.fabric.plugins.environments.xla, "_XLA_GREATER_EQUAL_2_1", True)
107107

108108
env = XLAEnvironment()
109109

0 commit comments

Comments
 (0)