diff --git a/tests/test_terminal.py b/tests/test_terminal.py index 39d5a7b..de6a07f 100644 --- a/tests/test_terminal.py +++ b/tests/test_terminal.py @@ -315,12 +315,13 @@ def test_open_pager(terminal, stdscr): data = "Hello World!" - def side_effect(*_, stdin=None): + def side_effect(args, stdin=None): assert stdin is not None raise OSError with mock.patch('subprocess.Popen', autospec=True) as Popen, \ mock.patch.dict('os.environ', {'PAGER': 'fake'}): + Popen.return_value.stdin = mock.Mock() terminal.open_pager(data) assert Popen.called