MCPcopy Index your code
hub / github.com/huggingface/diffusers / require_bitsandbytes

Function require_bitsandbytes

tests/testing_utils.py:720–724  ·  view source on GitHub ↗

Decorator marking a test that requires bitsandbytes. These tests are skipped when bitsandbytes isn't installed.

(test_case)

Source from the content-addressed store, hash-verified

718
719
720def require_bitsandbytes(test_case):
721 """
722 Decorator marking a test that requires bitsandbytes. These tests are skipped when bitsandbytes isn't installed.
723 """
724 return pytest.mark.skipif(not is_bitsandbytes_available(), reason="test requires bitsandbytes")(test_case)
725
726
727def require_quanto(test_case):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…