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

Function test_exec_command_stderr

numpy/distutils/tests/test_exec_command.py:82–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 exec_command.exec_command("cd '.'")
81
82def test_exec_command_stderr():
83 # Test posix version:
84 with redirect_stdout(TemporaryFile(mode='w+')):
85 with redirect_stderr(StringIO()):
86 with assert_warns(DeprecationWarning):
87 exec_command.exec_command("cd '.'")
88
89 if os.name == 'posix':
90 # Test general (non-posix) version:
91 with emulate_nonposix():
92 with redirect_stdout(TemporaryFile()):
93 with redirect_stderr(StringIO()):
94 with assert_warns(DeprecationWarning):
95 exec_command.exec_command("cd '.'")
96
97
98@pytest.mark.skipif(IS_WASM, reason="Cannot start subprocess")

Callers

nothing calls this directly

Calls 4

assert_warnsFunction · 0.90
redirect_stdoutClass · 0.85
redirect_stderrClass · 0.85
emulate_nonposixClass · 0.85

Tested by

no test coverage detected