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

Method check_nt

numpy/distutils/tests/test_exec_command.py:103–111  ·  view source on GitHub ↗
(self, **kws)

Source from the content-addressed store, hash-verified

101 self.pyexe = get_pythonexe()
102
103 def check_nt(self, **kws):
104 s, o = exec_command.exec_command('cmd /C echo path=%path%')
105 assert_(s == 0)
106 assert_(o != '')
107
108 s, o = exec_command.exec_command(
109 '"%s" -c "import sys;sys.stderr.write(sys.platform)"' % self.pyexe)
110 assert_(s == 0)
111 assert_(o == 'win32')
112
113 def check_posix(self, **kws):
114 s, o = exec_command.exec_command("echo Hello", **kws)

Callers 1

test_basicMethod · 0.95

Calls 1

assert_Function · 0.90

Tested by

no test coverage detected