We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bc7704 commit 6551416Copy full SHA for 6551416
test/common.py
@@ -7,15 +7,10 @@
7
from nose.tools import eq_ as eq
8
9
10
-session = None
11
-vim = None
12
if 'NVIM_CHILD_ARGV' in os.environ:
13
- argv = json.loads(os.environ['NVIM_CHILD_ARGV'])
14
- session = neovim.child_session(argv)
+ vim = neovim.attach('child', argv=json.loads(os.environ['NVIM_CHILD_ARGV']))
15
else:
16
- session = neovim.socket_session(os.environ['NVIM_LISTEN_ADDRESS'])
17
-
18
-vim = neovim.Nvim.from_session(session)
+ vim = neovim.attach('socket', path=os.environ['NVIM_LISTEN_ADDRESS'])
19
20
if sys.version_info >= (3, 0):
21
# For Python3 we decode binary strings as Unicode for compatibility
0 commit comments