MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / require_python39_or_higher

Function require_python39_or_higher

src/diffusers/utils/testing_utils.py:327–333  ·  view source on GitHub ↗
(test_case)

Source from the content-addressed store, hash-verified

325
326
327def require_python39_or_higher(test_case):
328 def python39_available():
329 sys_info = sys.version_info
330 major, minor = sys_info.major, sys_info.minor
331 return major == 3 and minor >= 9
332
333 return unittest.skipUnless(python39_available(), "test requires Python 3.9 or higher")(test_case)
334
335
336def load_numpy(arry: Union[str, np.ndarray], local_path: Optional[str] = None) -> np.ndarray:

Callers

nothing calls this directly

Calls 1

python39_availableFunction · 0.85

Tested by

no test coverage detected