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

Method test_module

Lib/test/test_argparse.py:7100–7105  ·  view source on GitHub ↗
(self, compiled=False)

Source from the content-addressed store, hash-verified

7098 self.test_directory(compiled=True)
7099
7100 def test_module(self, compiled=False):
7101 basename = 'module' + os_helper.FS_NONASCII
7102 modulename = f'{self.dirname}.{basename}'
7103 self.make_script(self.dirname, basename, compiled=compiled)
7104 self.check_usage(f'{py} -m {modulename}',
7105 '-m', modulename, PYTHONPATH=os.curdir)
7106
7107 def test_module_compiled(self):
7108 self.test_module(compiled=True)

Callers 1

test_module_compiledMethod · 0.95

Calls 2

make_scriptMethod · 0.95
check_usageMethod · 0.95

Tested by

no test coverage detected