Fix documentation tests

This commit is contained in:
Dave Halter
2020-08-01 00:12:24 +02:00
parent 6edda9063a
commit 2c157e323e
2 changed files with 5 additions and 4 deletions

View File

@@ -18,10 +18,10 @@ describe 'documentation docstrings'
let header = getline(1, 2)
PythonJedi vim.vars["is_py2"] = sys.version_info[0] == 2
if g:is_py2
Expect header[0] == "Docstring for __builtin__:class ImportError"
Expect header[0] == "Docstring for class __builtin__.ImportError"
Expect header[1] == "==========================================="
else
Expect header[0] == "Docstring for builtins:class ImportError"
Expect header[0] == "Docstring for class builtins.ImportError"
Expect header[1] == "========================================"
endif
let content = join(getline(3, '$'), "\n")