##// END OF EJS Templates
IPython/lib/editorhooks.py: wait for process even if wait=False...
Segev Finer -
Show More
@@ -53,7 +53,7 b' def install_editor(template, wait=False):'
53 53 if sys.platform.startswith('win'):
54 54 cmd = shlex.split(cmd)
55 55 proc = subprocess.Popen(cmd, shell=True)
56 if wait and proc.wait() != 0:
56 if proc.wait() != 0:
57 57 raise TryNext()
58 58 if wait:
59 59 py3compat.input("Press Enter when done editing:")
@@ -14,6 +14,7 b' def test_install_editor():'
14 14 'args': args,
15 15 'kwargs': kwargs,
16 16 })
17 return mock.MagicMock(**{'wait.return_value': 0})
17 18 editorhooks.install_editor('foo -l {line} -f {filename}', wait=False)
18 19
19 20 with mock.patch('subprocess.Popen', fake_popen):
General Comments 0
You need to be logged in to leave comments. Login now