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

Method _add_python_opts

Lib/test/libregrtest/main.py:712–732  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

710 # continue executing main()
711
712 def _add_python_opts(self) -> None:
713 python_opts: list[str] = []
714 regrtest_opts: list[str] = []
715
716 environ, keep_environ = self._add_cross_compile_opts(regrtest_opts)
717 if self.ci_mode:
718 self._add_ci_python_opts(python_opts, keep_environ)
719
720 if (not python_opts) and (not regrtest_opts) and (environ is None):
721 # Nothing changed: nothing to do
722 return
723
724 # Create new command line
725 cmd = list(sys.orig_argv)
726 if python_opts:
727 cmd[1:1] = python_opts
728 if regrtest_opts:
729 cmd.extend(regrtest_opts)
730 cmd.append("--dont-add-python-opts")
731
732 self._execute_python(cmd, environ)
733
734 def _init(self):
735 setup_process()

Callers 1

mainMethod · 0.95

Calls 6

_add_ci_python_optsMethod · 0.95
_execute_pythonMethod · 0.95
listClass · 0.85
extendMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected