MCPcopy Index your code
hub / github.com/RustPython/RustPython / find_spec

Method find_spec

Lib/test/test_pkgutil.py:373–378  ·  view source on GitHub ↗
(self, fullname, path=None, target=None)

Source from the content-addressed store, hash-verified

371
372 class MyTestImporter(object):
373 def find_spec(self, fullname, path=None, target=None):
374 loader = PkgutilPEP302Tests.MyTestLoader()
375 return spec_from_file_location(fullname,
376 '<%s>' % loader.__class__.__name__,
377 loader=loader,
378 submodule_search_locations=[])
379
380 def setUp(self):
381 sys.meta_path.insert(0, self.MyTestImporter())

Callers 1

test_iter_importersMethod · 0.45

Calls 1

spec_from_file_locationFunction · 0.50

Tested by

no test coverage detected