MCPcopy Create free account
hub / github.com/ipython/ipython / key

Class key

IPython/utils/tests/test_path.py:173–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 env.pop(key, None)
172
173 class key:
174 def __enter__(self):
175 pass
176 def Close(self):
177 pass
178 def __exit__(*args, **kwargs):
179 pass
180
181 with patch.object(wreg, 'OpenKey', return_value=key()), \
182 patch.object(wreg, 'QueryValueEx', return_value=[abspath(HOME_TEST_DIR)]):

Callers 1

test_get_home_dir_8Function · 0.85

Calls

no outgoing calls

Tested by 1

test_get_home_dir_8Function · 0.68