Skip to content

Commit

Permalink
Fix testing and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
numirias committed Oct 1, 2019
1 parent ca6b2c1 commit b50f1bc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rplugin/python3/semshi/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _update_loop(self):
self._add_visible_hls()
self._viewport_changed = False
except Exception:
import traceback
import traceback # pylint: disable=import-outside-toplevel
logger.error('Exception: %s', traceback.format_exc())
raise

Expand Down
2 changes: 2 additions & 0 deletions test/data/test.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ let &runtimepath .= ',' . getcwd() . '/test/helperplugin'

set noswapfile
set hidden
set viminfo="NONE"
set shada="NONE"
6 changes: 3 additions & 3 deletions test/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def plugin_dir(tmpdir_factory):
@pytest.fixture(scope='module', autouse=True)
def register_plugin(plugin_dir):
os.environ['NVIM_RPLUGIN_MANIFEST'] = str(plugin_dir.join('rplugin.vim'))
child_argv = ['nvim', '-u', VIMRC, '--embed']
child_argv = ['nvim', '-u', VIMRC, '--embed', '--headless']
vim = neovim.attach('child', argv=child_argv)
vim.command('UpdateRemotePlugins')
vim.quit()
Expand Down Expand Up @@ -69,15 +69,15 @@ def wait_for_update_thread(self):

@pytest.fixture(scope='function')
def vim():
argv = ['nvim', '-u', VIMRC, '--embed']
argv = ['nvim', '-u', VIMRC, '--embed', '--headless']
vim = neovim.attach('child', argv=argv)
return WrappedVim(vim)


def start_vim(argv=None, file=None):
if argv is None:
argv = []
argv = ['nvim', '-u', VIMRC, '--embed', *argv]
argv = ['nvim', '-u', VIMRC, '--embed', '--headless', *argv]
vim = neovim.attach('child', argv=argv)
if file is not None:
fn = file or '/tmp/foo.py' # TODO Use relaible tmp path
Expand Down

0 comments on commit b50f1bc

Please sign in to comment.