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

Method test_basic

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

Source from the content-addressed store, hash-verified

204 assert_(o == 'Hello')
205
206 def test_basic(self):
207 with redirect_stdout(StringIO()):
208 with redirect_stderr(StringIO()):
209 with assert_warns(DeprecationWarning):
210 if os.name == "posix":
211 self.check_posix(use_tee=0)
212 self.check_posix(use_tee=1)
213 elif os.name == "nt":
214 self.check_nt(use_tee=0)
215 self.check_nt(use_tee=1)
216 self.check_execute_in(use_tee=0)
217 self.check_execute_in(use_tee=1)

Callers

nothing calls this directly

Calls 6

check_posixMethod · 0.95
check_ntMethod · 0.95
check_execute_inMethod · 0.95
assert_warnsFunction · 0.90
redirect_stdoutClass · 0.85
redirect_stderrClass · 0.85

Tested by

no test coverage detected