Merge Subprocess and CompiledSubprocess

This commit is contained in:
Dave Halter
2018-01-02 00:33:30 +01:00
parent 927aa2bd91
commit 7ff6871548
2 changed files with 20 additions and 17 deletions

View File

@@ -50,6 +50,9 @@ def test_load_module(evaluator):
def test_error_in_environment(evaluator, Script):
# Provoke an error to show how Jedi can recover from it.
with pytest.raises(jedi.InternalError):
evaluator.compiled_subprocess._test_raise_error(KeyboardInterrupt)
# The second time it should raise an InternalError again.
with pytest.raises(jedi.InternalError):
evaluator.compiled_subprocess._test_raise_error(KeyboardInterrupt)
# Jedi should still work.