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 13cf1d0 commit 85bbdceCopy full SHA for 85bbdce
tests/tests_fabric/plugins/environments/test_xla.py
@@ -100,10 +100,10 @@ def test_detect(monkeypatch):
100
101
102
@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)
105
def test_attributes_from_xla_greater_21_used(xla_available, monkeypatch):
106
"""Test XLA environment attributes when using XLA runtime >= 2.1."""
- monkeypatch.setattr(lightning.fabric.accelerators.xla, "_XLA_GREATER_EQUAL_2_1", True)
- monkeypatch.setattr(lightning.fabric.plugins.environments.xla, "_XLA_GREATER_EQUAL_2_1", True)
107
108
env = XLAEnvironment()
109
0 commit comments