MCPcopy Create free account
hub / github.com/hyperopt/hyperopt / test_workdir

Function test_workdir

hyperopt/tests/unit/test_utils.py:147–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145
146
147def test_workdir():
148 fn = "test_work_dir"
149 os.makedirs(fn)
150 try:
151 assert fn not in os.getcwd()
152 with working_dir(fn):
153 assert fn in os.getcwd()
154 assert fn not in os.getcwd()
155 finally:
156 if os.path.isdir(fn):
157 os.rmdir(fn)

Callers

nothing calls this directly

Calls 1

working_dirFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…