aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtWidgets/bug_750.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-10-21 16:23:08 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-10-23 10:36:21 +0200
commit88bff187d4c20837e011d342bc7a4691b71c649c (patch)
tree3428825b5fbb77699f7d2dad54ac7eff0085cf27 /sources/pyside6/tests/QtWidgets/bug_750.py
parent049174c185e6cb8f9157c93f1ccc39a90f38ad88 (diff)
Fix tests using the Wayland platform plugin
Remove the loop ensuring the window is mapped introduced by 918cd72f5eaebf56287a5ab0ac2e149ba1617a57, since on Wayland, the paint event occurs there, causing a hang. This loop is usually used to ensure a window is in a deterministic state for playing mouse events, etc, but for paint events it should not be required. Skip the native event test for Wayland, too. Change-Id: I2b44dc098873614e2b8d9bc54444917fd4905e9f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/bug_750.py')
-rw-r--r--sources/pyside6/tests/QtWidgets/bug_750.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_750.py b/sources/pyside6/tests/QtWidgets/bug_750.py
index 61356c173..7ede387eb 100644
--- a/sources/pyside6/tests/QtWidgets/bug_750.py
+++ b/sources/pyside6/tests/QtWidgets/bug_750.py
@@ -13,7 +13,7 @@ init_test_paths(False)
from helper.usesqapplication import UsesQApplication
-from PySide6.QtCore import QCoreApplication, QTimer
+from PySide6.QtCore import QTimer
from PySide6.QtGui import QPainter
from PySide6.QtWidgets import QWidget
@@ -33,8 +33,6 @@ class TestQPainter(UsesQApplication):
def testFontInfo(self):
w = MyWidget()
w.show()
- while not w.windowHandle().isExposed():
- QCoreApplication.processEvents()
self.app.exec()
self.assertTrue(w._info)