MCPcopy Index your code
hub / github.com/python/cpython / test_directory

Method test_directory

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

Source from the content-addressed store, hash-verified

7219 self.test_script(compiled=True)
7220
7221 def test_directory(self, compiled=False):
7222 dirname = os.path.join(self.dirname, os_helper.TESTFN)
7223 os.mkdir(dirname)
7224 self.make_script(dirname, '__main__', compiled=compiled)
7225 self.check_usage(f'{py} {dirname}', dirname)
7226 dirname2 = os.path.join(os.curdir, dirname)
7227 self.check_usage(f'{py} {dirname2}', dirname2)
7228
7229 def test_directory_compiled(self):
7230 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