diff options
-rw-r--r-- | tests/QtDeclarative/bug_847.py | 7 | ||||
-rw-r--r-- | tests/QtDeclarative/bug_847.qml | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/tests/QtDeclarative/bug_847.py b/tests/QtDeclarative/bug_847.py index faba8c951..91619c8a6 100644 --- a/tests/QtDeclarative/bug_847.py +++ b/tests/QtDeclarative/bug_847.py @@ -4,14 +4,12 @@ # Released under the same terms as PySide itself # 2011-05-04 Thomas Perl <m@thp.io> - import unittest from PySide.QtCore import Slot, Signal, QUrl -from PySide.QtGui import QApplication from PySide.QtDeclarative import QDeclarativeView -from helper import adjust_filename, TimedQApplication +from helper import adjust_filename, UsesQApplication class View(QDeclarativeView): def __init__(self): @@ -26,9 +24,10 @@ class View(QDeclarativeView): called = Signal(int, int) -class TestQML(TimedQApplication): +class TestQML(UsesQApplication): def done(self, x, y): self._sucess = True + self.app.quit() def testPythonSlot(self): self._sucess = False diff --git a/tests/QtDeclarative/bug_847.qml b/tests/QtDeclarative/bug_847.qml index e47819ff7..1cb40faa4 100644 --- a/tests/QtDeclarative/bug_847.qml +++ b/tests/QtDeclarative/bug_847.qml @@ -15,7 +15,7 @@ Rectangle { } Timer { - interval: 1; running: true; + interval: 100; running: true; onTriggered: { if (pythonObject != undefined) { pythonObject.blubb(42, 84) |