summaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative/connect_python_qml.py
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-12-28 14:50:46 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-12-29 10:14:28 -0200
commite8c0ba238a4807a77033ad3d3087787959dc1cc3 (patch)
tree5a1c5190103e7811f5a6a72f7e44efc8b6c4bfc3 /tests/QtDeclarative/connect_python_qml.py
parent4b6cc4d478726762d71578a8e2cd0049740d84a6 (diff)
downloadpyside-e8c0ba238a4807a77033ad3d3087787959dc1cc3.tar.gz
pyside-e8c0ba238a4807a77033ad3d3087787959dc1cc3.tar.xz
pyside-e8c0ba238a4807a77033ad3d3087787959dc1cc3.zip
Fix bug#563 - "Unhandled signal emitting with invalid signature (which leads to application crash)"
Diffstat (limited to 'tests/QtDeclarative/connect_python_qml.py')
-rw-r--r--tests/QtDeclarative/connect_python_qml.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/QtDeclarative/connect_python_qml.py b/tests/QtDeclarative/connect_python_qml.py
index e8180f7..669eec6 100644
--- a/tests/QtDeclarative/connect_python_qml.py
+++ b/tests/QtDeclarative/connect_python_qml.py
@@ -19,9 +19,9 @@ class TestConnectionWithInvalidSignature(TimedQApplication):
view.setSource(QtCore.QUrl.fromLocalFile(adjust_filename('connect_python_qml.qml', __file__)))
root = view.rootObject()
button = root.findChild(QtCore.QObject, "buttonMouseArea")
- self.assertRaises(TypeError, QtCore.QObject.connect, [button,QtCore.SIGNAL('clicked()'), self.onButtonFailClicked])
- button.clicked.connect(self.onButtonClicked)
- button.clicked.emit()
+ self.assertRaises(TypeError, QtCore.QObject.connect, [button,QtCore.SIGNAL('entered()'), self.onButtonFailClicked])
+ button.entered.connect(self.onButtonClicked)
+ button.entered.emit()
view.show()
self.app.exec_()
self.assert_(self.buttonClicked)