MCPcopy Index your code
hub / github.com/pex-tool/pex / test_executor_execute_dir

Function test_executor_execute_dir

tests/test_executor.py:97–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96
97def test_executor_execute_dir():
98 # type: () -> None
99 with temporary_dir() as temp_dir:
100 test_dir = os.path.realpath(os.path.join(temp_dir, "tmp"))
101 safe_mkdir(test_dir)
102 assert os.path.isdir(test_dir)
103 with pytest.raises(Executor.ExecutionError) as e:
104 Executor.execute(test_dir)
105 assert test_dir in str(e)

Callers

nothing calls this directly

Calls 4

temporary_dirFunction · 0.90
safe_mkdirFunction · 0.90
joinMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected