1
0
forked from VimPlug/jedi

Add a way to skip typing tests in non default environments

This commit is contained in:
Dave Halter
2017-12-20 10:07:16 +01:00
parent 890dd2213d
commit a96f2c43df
2 changed files with 15 additions and 1 deletions

View File

@@ -31,9 +31,11 @@ unspecified = %s
""" % (case, sorted(d - a), sorted(a - d))
def test_completion(case, monkeypatch, environment):
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:
pytest.skip('Needs the typing module installed to run this test.')
repo_root = helpers.root_dir
monkeypatch.chdir(os.path.join(repo_root, 'jedi'))
case.run(assert_case_equal, environment)