aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/QtGui/bug_750.py3
-rw-r--r--tests/QtGui/qpicture_test.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/QtGui/bug_750.py b/tests/QtGui/bug_750.py
index 9b66df9ed..902a6555d 100644
--- a/tests/QtGui/bug_750.py
+++ b/tests/QtGui/bug_750.py
@@ -2,6 +2,7 @@ import unittest
from helper import UsesQApplication
+from PySide.QtCore import QTimer
from PySide.QtGui import QPainter, QFont, QFontInfo, QWidget, qApp
class MyWidget(QWidget):
@@ -16,7 +17,7 @@ class TestQPainter(UsesQApplication):
w = MyWidget()
w._app = self.app
w._info = None
- w.show()
+ QTimer.singleShot(300, w.show)
self.app.exec_()
self.assert_(w._info)
diff --git a/tests/QtGui/qpicture_test.py b/tests/QtGui/qpicture_test.py
index 2aa82c918..3cc248927 100644
--- a/tests/QtGui/qpicture_test.py
+++ b/tests/QtGui/qpicture_test.py
@@ -2,6 +2,7 @@ import unittest
import os
from helper import UsesQApplication
+from PySide.QtCore import QTimer
from PySide.QtGui import QPicture, QPainter, QWidget
class MyWidget(QWidget):
@@ -27,7 +28,8 @@ class QPictureTest(UsesQApplication):
w = MyWidget()
w._picture = picture2
w._app = self.app
- w.show()
+
+ QTimer.singleShot(300, w.show)
self.app.exec_()
if __name__ == '__main__':