diff options
Diffstat (limited to 'tests/unit/misc/test_ipc.py')
-rw-r--r-- | tests/unit/misc/test_ipc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/misc/test_ipc.py b/tests/unit/misc/test_ipc.py index fa3d6599b..068368e65 100644 --- a/tests/unit/misc/test_ipc.py +++ b/tests/unit/misc/test_ipc.py @@ -654,9 +654,10 @@ class TestSendOrListen: @pytest.fixture def qlocalserver_mock(self, mocker): + orig_socket_option = network.QLocalServer.SocketOption m = mocker.patch('qutebrowser.misc.ipc.network.QLocalServer', autospec=True) m().errorString.return_value = "Error string" - m.SocketOption = network.QLocalServer.SocketOption + m.SocketOption = orig_socket_option m().newConnection = stubs.FakeSignal() return m |