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

Method tearDown

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

Source from the content-addressed store, hash-verified

72 self.kernels_utils = kernels_utils
73
74 def tearDown(self):
75 _unpatch_kernels()
76 import modelscope
77 for name in ('get_kernel', 'has_kernel', 'install_kernel',
78 'load_kernel', 'get_locked_kernel', 'snapshot_download'):
79 try:
80 delattr(modelscope, name)
81 except AttributeError:
82 pass
83
84
85class KernelsProxyApiTest(_KernelsTestBase):

Callers

nothing calls this directly

Calls 1

_unpatch_kernelsFunction · 0.90

Tested by

no test coverage detected