aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative/connect_python_qml.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtDeclarative/connect_python_qml.py')
-rw-r--r--tests/QtDeclarative/connect_python_qml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/QtDeclarative/connect_python_qml.py b/tests/QtDeclarative/connect_python_qml.py
index bb505156e..e8180f782 100644
--- a/tests/QtDeclarative/connect_python_qml.py
+++ b/tests/QtDeclarative/connect_python_qml.py
@@ -16,7 +16,7 @@ class TestConnectionWithInvalidSignature(TimedQApplication):
self.buttonClicked = False
self.buttonFailClicked = False
view = QtDeclarative.QDeclarativeView()
- view.setSource(QtCore.QUrl(adjust_filename('connect_python_qml.qml', __file__)))
+ 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])