MCPcopy Create free account
hub / github.com/numpy/numpy / __enter__

Method __enter__

numpy/distutils/tests/test_exec_command.py:50–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 self._new_name = osname
49
50 def __enter__(self):
51 self._old_name = os.name
52 os.name = self._new_name
53
54 def __exit__(self, exc_type, exc_value, traceback):
55 os.name = self._old_name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected