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

Function python39_available

src/diffusers/utils/testing_utils.py:328–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected