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

Method setup_test_pkg

Lib/test/test_cmd_line_script.py:444–449  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

442
443 @contextlib.contextmanager
444 def setup_test_pkg(self, *args):
445 with os_helper.temp_dir() as script_dir, \
446 os_helper.change_cwd(path=script_dir):
447 pkg_dir = os.path.join(script_dir, 'test_pkg')
448 make_pkg(pkg_dir, *args)
449 yield pkg_dir
450
451 def check_dash_m_failure(self, *args):
452 rc, out, err = assert_python_failure('-m', *args, __isolated=False)

Calls 3

make_pkgFunction · 0.90
temp_dirMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected