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

Method test_bytes_executable

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

Source from the content-addressed store, hash-verified

376 self._assert_python([doesnotexist, "-c"], executable=sys.executable)
377
378 def test_bytes_executable(self):
379 doesnotexist = os.path.join(os.path.dirname(sys.executable),
380 "doesnotexist")
381 self._assert_python([doesnotexist, "-c"],
382 executable=os.fsencode(sys.executable))
383
384 def test_pathlike_executable(self):
385 doesnotexist = os.path.join(os.path.dirname(sys.executable),

Callers

nothing calls this directly

Calls 3

_assert_pythonMethod · 0.95
joinMethod · 0.45
dirnameMethod · 0.45

Tested by

no test coverage detected