diff options
Diffstat (limited to 'tests/test_history.py')
-rw-r--r-- | tests/test_history.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_history.py b/tests/test_history.py index 2edb89dc..60ffdb3a 100644 --- a/tests/test_history.py +++ b/tests/test_history.py @@ -221,8 +221,8 @@ def test_history_edit(base_app, monkeypatch): base_app.editor = 'fooedit' # Mock out the os.system call so we don't actually open an editor - m = mock.MagicMock(name='system') - monkeypatch.setattr("os.system", m) + m = mock.MagicMock(name='Popen') + monkeypatch.setattr("subprocess.Popen", m) # Run help command just so we have a command in history run_cmd(base_app, 'help') |