1
0
forked from VimPlug/jedi

Remove stdout/stderr from subprocesses (redirected to /dev/null)

This means that the subprocess should now not crash anymore because of people
writing to stdout in c modules and stderr should be empty.

Fixes #793.
This commit is contained in:
Dave Halter
2018-03-17 14:14:00 +01:00
parent 5f0b34a520
commit 094affaf84
3 changed files with 23 additions and 2 deletions

View File

@@ -67,6 +67,11 @@ def test_error_in_environment(evaluator, Script):
assert def_.name == 'str'
def test_stdout_in_subprocess(evaluator, Script):
evaluator.compiled_subprocess._test_print(stdout='.')
Script('1').goto_definitions()
def test_killed_subprocess(evaluator, Script):
# Just kill the subprocess.
evaluator.compiled_subprocess._compiled_subprocess._process.kill()