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

Method test_pathlike_executable

Lib/test/test_subprocess.py:384–388  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

382 executable=os.fsencode(sys.executable))
383
384 def test_pathlike_executable(self):
385 doesnotexist = os.path.join(os.path.dirname(sys.executable),
386 "doesnotexist")
387 self._assert_python([doesnotexist, "-c"],
388 executable=FakePath(sys.executable))
389
390 def test_executable_takes_precedence(self):
391 # Check that the executable argument takes precedence over args[0].

Callers

nothing calls this directly

Calls 4

_assert_pythonMethod · 0.95
FakePathClass · 0.90
joinMethod · 0.45
dirnameMethod · 0.45

Tested by

no test coverage detected