Skip some more IPC tests on Windows.
This commit is contained in:
parent
9521da3c73
commit
bf9a897ce8
@ -477,6 +477,7 @@ class TestSendOrListen:
|
|||||||
setattr(m, attr, getattr(QLocalSocket, attr))
|
setattr(m, attr, getattr(QLocalSocket, attr))
|
||||||
return m
|
return m
|
||||||
|
|
||||||
|
@pytest.mark.posix # Flaky on Windows
|
||||||
def test_normal_connection(self, caplog, qtbot, args):
|
def test_normal_connection(self, caplog, qtbot, args):
|
||||||
ret_server = ipc.send_or_listen(args)
|
ret_server = ipc.send_or_listen(args)
|
||||||
assert isinstance(ret_server, ipc.IPCServer)
|
assert isinstance(ret_server, ipc.IPCServer)
|
||||||
@ -565,7 +566,8 @@ class TestSendOrListen:
|
|||||||
]
|
]
|
||||||
assert msgs[-5:] == error_msgs
|
assert msgs[-5:] == error_msgs
|
||||||
|
|
||||||
def test_listen_error(self, qlocalserver_mock, caplog, args):
|
@pytest.mark.posix # Flaky on Windows
|
||||||
|
def test_error_while_listening(self, qlocalserver_mock, caplog, args):
|
||||||
"""Test an error with the first listen call."""
|
"""Test an error with the first listen call."""
|
||||||
qlocalserver_mock().listen.return_value = False
|
qlocalserver_mock().listen.return_value = False
|
||||||
err = QAbstractSocket.SocketResourceError
|
err = QAbstractSocket.SocketResourceError
|
||||||
|
Loading…
Reference in New Issue
Block a user