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

Method test_directory

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

Source from the content-addressed store, hash-verified

7087 self.test_script(compiled=True)
7088
7089 def test_directory(self, compiled=False):
7090 dirname = os.path.join(self.dirname, os_helper.TESTFN)
7091 os.mkdir(dirname)
7092 self.make_script(dirname, '__main__', compiled=compiled)
7093 self.check_usage(f'{py} {dirname}', dirname)
7094 dirname2 = os.path.join(os.curdir, dirname)
7095 self.check_usage(f'{py} {dirname2}', dirname2)
7096
7097 def test_directory_compiled(self):
7098 self.test_directory(compiled=True)

Callers 1

Calls 4

make_scriptMethod · 0.95
check_usageMethod · 0.95
joinMethod · 0.45
mkdirMethod · 0.45

Tested by

no test coverage detected