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

Method create_submodule

Lib/test/test_pkgutil.py:416–419  ·  view source on GitHub ↗
(self, dirname, pkgname, submodule_name, value)

Source from the content-addressed store, hash-verified

414 return dirname
415
416 def create_submodule(self, dirname, pkgname, submodule_name, value):
417 module_name = os.path.join(dirname, pkgname, submodule_name + '.py')
418 with open(module_name, 'w') as fl:
419 print('value={}'.format(value), file=fl)
420
421 def test_simple(self):
422 pkgname = 'foo'

Callers 3

test_simpleMethod · 0.95
test_iter_importersMethod · 0.95
test_mixed_namespaceMethod · 0.95

Calls 4

openFunction · 0.50
printFunction · 0.50
joinMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected