Some test fixes

This commit is contained in:
Dave Halter
2019-03-28 19:23:55 +01:00
parent aa37f6f738
commit 2f1ce2bbf9
4 changed files with 11 additions and 7 deletions

View File

@@ -55,7 +55,10 @@ def test_load_module(evaluator):
access_handle.py__mro__()
def test_error_in_environment(evaluator, Script):
def test_error_in_environment(evaluator, Script, environment):
if isinstance(environment, InterpreterEnvironment):
pytest.skip("We don't catch these errors at the moment.")
# Provoke an error to show how Jedi can recover from it.
with pytest.raises(jedi.InternalError):
evaluator.compiled_subprocess._test_raise_error(KeyboardInterrupt)