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

Method __init__

numpy/distutils/tests/test_exec_command.py:47–48  ·  view source on GitHub ↗
(self, osname='non-posix')

Source from the content-addressed store, hash-verified

45class emulate_nonposix:
46 """Context manager to emulate os.name != 'posix' """
47 def __init__(self, osname='non-posix'):
48 self._new_name = osname
49
50 def __enter__(self):
51 self._old_name = os.name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected