Make test_get_all_objects_qapp work on Windows.

This commit is contained in:
Florian Bruhin 2015-08-11 19:29:30 +02:00
parent 68f80c602b
commit 0f47ef17a5

View File

@ -247,4 +247,6 @@ class TestGetAllObjects:
@pytest.mark.usefixtures('qapp')
def test_get_all_objects_qapp(self):
objects = debug.get_all_objects()
assert '<PyQt5.QtCore.QAbstractEventDispatcher object at' in objects
event_dispatcher = '<PyQt5.QtCore.QAbstractEventDispatcher object at'
session_manager = '<PyQt5.QtGui.QSessionManager object at'
assert event_dispatcher in objects or session_manager in objects