()
| 80 | exec_command.exec_command("cd '.'") |
| 81 | |
| 82 | def 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") |
nothing calls this directly
no test coverage detected