File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
tests_fabric/plugins/precision
tests_pytorch/plugins/precision Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2727from tests_fabric .helpers .runif import RunIf
2828
2929
30- @pytest .mark .skipif (_BITSANDBYTES_AVAILABLE , reason = "bitsandbytes needs to be unavailable" )
30+ @pytest .mark .skipif (not _BITSANDBYTES_AVAILABLE , reason = "bitsandbytes needs to be unavailable" )
3131def test_bitsandbytes_plugin (monkeypatch ):
3232 module = lightning .fabric .plugins .precision .bitsandbytes
3333 monkeypatch .setattr (module , "_BITSANDBYTES_AVAILABLE" , lambda : True )
Original file line number Diff line number Diff line change 2424from lightning .pytorch .plugins .precision .bitsandbytes import BitsandbytesPrecision
2525
2626
27- @pytest .mark .skipif (_BITSANDBYTES_AVAILABLE , reason = "bitsandbytes needs to be unavailable" )
27+ @pytest .mark .skipif (not _BITSANDBYTES_AVAILABLE , reason = "bitsandbytes needs to be unavailable" )
2828def test_bitsandbytes_plugin (monkeypatch ):
2929 module = lightning .fabric .plugins .precision .bitsandbytes
3030 monkeypatch .setattr (module , "_BITSANDBYTES_AVAILABLE" , lambda : True )
You can’t perform that action at this time.
0 commit comments