MCPcopy Create free account
hub / github.com/modelscope/modelscope / setUp

Method setUp

tests/utils/test_hf_util_kernels.py:66–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 _ensure_kernels_installed()
65
66 def setUp(self):
67 _unpatch_kernels()
68 # Instance attribute, so the descriptor protocol is not triggered.
69 from kernels.utils import _get_hf_api
70 from kernels import utils as kernels_utils
71 self.original_get_hf_api = _get_hf_api
72 self.kernels_utils = kernels_utils
73
74 def tearDown(self):
75 _unpatch_kernels()

Callers

nothing calls this directly

Calls 1

_unpatch_kernelsFunction · 0.90

Tested by

no test coverage detected