From 7ad37fb9762e87532b12b94f8a0751cc806c615e Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 23 Dec 2017 19:56:47 +0100 Subject: [PATCH] Skip more tests if it's necessary. --- test/test_integration.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_integration.py b/test/test_integration.py index 7df1e81e..9baf3fd8 100644 --- a/test/test_integration.py +++ b/test/test_integration.py @@ -34,7 +34,9 @@ unspecified = %s def test_completion(case, monkeypatch, environment, has_typing): if case.skip is not None: pytest.skip(case.skip) - if not has_typing and 'typing' in case.path: + + _CONTAINS_TYPING = ('pep0484_typing', 'pep0484_comments', 'pep0526_variables') + if not has_typing and any(x in case.path for x in _CONTAINS_TYPING): pytest.skip('Needs the typing module installed to run this test.') repo_root = helpers.root_dir monkeypatch.chdir(os.path.join(repo_root, 'jedi'))