summaryrefslogtreecommitdiff
path: root/dev-python/neovim-remote/files/neovim-remote-2.5.1-neovim-0.8.patch
blob: ee0adf8f9211a9389b260588bf4bc23445e60a31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
https://github.com/mhinz/neovim-remote/pull/183

From 56d2a4097f4b639a16902390d9bdd8d1350f948c Mon Sep 17 00:00:00 2001
From: oxalica <oxalicc@pm.me>
Date: Sun, 2 Oct 2022 08:09:57 +0800
Subject: [PATCH] Fix tests for neovim 0.8.0

Since neovim/neovim#8519, `NVIM_LISTEN_ADDRESS` is only directly used
when it contains colons or (back-)slashes. Otherwise it is concatanated
with a tempdir prefix and suffixes to form the final path.
--- a/tests/test_nvr.py
+++ b/tests/test_nvr.py
@@ -18,7 +18,7 @@ def run_nvr(cmdlines, env):
         nvr.main(cmdline, env)
 
 def setup_env():
-    env = {'NVIM_LISTEN_ADDRESS': 'pytest_socket_{}'.format(uuid.uuid4())}
+    env = {'NVIM_LISTEN_ADDRESS': './pytest_socket_{}'.format(uuid.uuid4())}
     env.update(os.environ)
     return env